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.
Exception | Description |
---|---|
ProcessorException | A Processor exception. |
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.
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 ); |