ColorReplace Method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short ColorReplace (ILEADRaster* pRaster, short iHue, short iSaturation, short iBrightness)

Overview

Refer to Correcting Colors

Remarks

Replaces specified colors by adjusting values of hue, saturation and brightness.

The value of the ReplaceColorFuzziness property determines the range around each color where the pixels will be changed according to iHue, iSaturation and iBrightness.

Support for 12 and 16-bit grayscale and 48 and 64-bit color images is 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:

ReplaceColorFuzziness property, ReplaceColorValue property, ReplaceColorsCount property, Intensity method, GammaCorrect method, Contrast method, HistoContrast method, StretchIntensity method, RemapIntensity method, Invert method, Saturation method, HistoEqualize method, Fill method, GetHistogram method, HueSaturationIntensity method, ColorReplace method, ColorThreshold method, GetBitmapStatisticsInfo method, GetObjectInfo method, MathFunction method, RevEffect method, Segment method, SubtractBackground method, UserFilter method

Topics:

Raster Images: Modifying Intensity Values.