ColorIntensityBalance method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int ColorIntensityBalance(int nShadowsRed, int nShadowsGreen, int nShadowsBlue, int nMidToneRed, int nMidToneGreen, int nMidToneBlue, int nHighLightRed, int nHighLightGreen, int nHighLightBlue, bool bLuminance);

Delphi Syntax

Function ColorIntensityBalance (nShadowsRed: L_INT; nShadowsGreen: L_INT; nShadowsBlue: L_INT; nMidToneRed: L_INT; nMidToneGreen: L_INT; nMidToneBlue: L_INT; nHighLightRed: L_INT; nHighLightGreen: L_INT; nHighLightBlue: L_INT; bLuminance: Boolean ): L_INT;

Overview

Refer to Correcting Colors

Remarks

(Raster Pro and above toolkits.) Changes the distribution of the red, green, or blue channels to make the colors in an image more accurate or more different.

Each color component is treated independently. The color range for each component is split into Shadows, Midtones and Highlights based on the intensity. Positive values from a component cause that particular component to become brighter, whereas negative values cause the component to become darker. A value of 0 leaves the component unchanged.

The preserve luminance option aims to minimize the luminance change in the image.

This method supports only RGB images. It does not support grayscale images.

Support for 48-bit and 64-bit colored images are available only in the Document/Medical toolkits.

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:

ConvertToColoredGray method, GrayScale method, GrayScaleExt method, IsGrayScale property, Sharpen method, Posterize method, Mosaic method, Emboss method, Median method, AddNoise method, IntensityDetect method, SpatialFilter method, BinaryFilter method, MaxFilter method, MinFilter method, Oilify method, Solarize method, WindowLevel method, AutoColorLevel method, ColorLevel method, SelectiveColor method.

Topics:

Raster Images: Modifying Intensity Values