ContrastBrightIntensity method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short ContrastBrightIntensity (ILEADRaster *pRaster, short iContrast, short iBrightness, short iIntensity);

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 clamped 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.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

Contrast, Intensity, Saturation, Sharpen, Posterize, Mosaic, Emboss, Median, AddNoise, IntensityDetect, SpatialFilter, BinaryFilter, MaxFilter, MinFilter, Oilify, Solarize, WindowLevel, ColorLevel, AutoColorLevel, SelectData method, ColorizeGray

Topics:

Raster Images: Modifying Intensity Values