Accusoft.ImagXpress12.Net
ApplyGrayscaleTransform(Int32,Int32) Method
See Also  Example Send Feedback
Accusoft.ImagXpressSdk Namespace > Processor Class > ApplyGrayscaleTransform Method : ApplyGrayscaleTransform(Int32,Int32) Method




brightness
The brightness intensity from -100 to 100.
contrast
The contrast intensity from -100 to 100.

Glossary Item Box

Permanently levels an 8 through 16-bit gray image to and 8-bit gray image.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

brightness
The brightness intensity from -100 to 100.
contrast
The contrast intensity from -100 to 100.

Exceptions

ExceptionDescription
ProcessorExceptionA Processor exception.

Remarks

Some images describe more shades of gray than the human eye can discriminate. It is widely held that 256 shades are discernable. This method calculates a factor to multiply the values by to convert the selected range of grays to 256.

In order to further process or save 9-bit to 16-bit grayscale images, this method may need to be called first.

Note: Available in Professional edition.

Example

C#Copy Code
// create the processor class
Accusoft.ImagXpressSdk.Processor processor = new Accusoft.ImagXpressSdk.Processor( );
// associate it with a 8 to 16 bit per pixel image
processor.Image = highGrayImageX;
// apply the standard grayscale transform making the image brighter and enhancing the contrast
processor.ApplyGrayscaleTransform( 30, 10 );

See Also

©2013. Accusoft Corporation. All Rights Reserved.