ContrastBrightIntensity method (Main Control)
Builder Syntax |
int ContrastBrightIntensity (int nContrast, int nBrightness, int nIntensity); |
Delphi Syntax |
Function ContrastBrightIntensity (nContrast: L_INT; nBrightness: L_INT; nIntensity: L_INT): L_INT; |
Overview |
Refer to Changing Brightness and Contrast |
Remarks
(Raster Pro and above toolkits) Applies contrast, brightness and intensity adjustments to enhance the image tonal range.
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. It also can process the whole image or a region of the image. If a bitmap has a region, the effect is applied only to the region.
The transformations are applied in this order: Contrast, Brightness then Intensity. Were the three methods to be called separately, then after each method was applied, calculated values less than 0 and more than 255 (for 8 bits per component for example) would be changed to 0 and 255 respectively. Using this method, the values are accumulative and the final result would be clamped. In addition, this method is faster than calling each method separately.
See Also