GammaCorrectExt method (ILEADRasterProcess)
short GammaCorrectExt(ILEADRaster * pRaster, long lGamma, GammaCorrectConstants flags) | |
Overview |
Refer to Changing Brightness and Contrast. |
Remarks
Adjusts the intensity of colors in a bitmap by changing the gamma constant that is used to map the intensity values. Either of two different color spaces can be specified.
This method is like the GammaCorrect method, but has been extended to allow the specification of the colorspace to be used.
Intensity values ideally follow a logarithmic progression, because the eye perceives changes in intensity as being equal when the ratio of change is equal. For example, we would see a change from 0.1 to 0.2 as being equal to a change from 0.2 to 0.4.
Gamma is a standard constant that is used to calculate the progression. For most CRTs the gamma constant is in the range of 2.2 to 2.5.
This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
See Also