Desaturate method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Desaturate(void);

Delphi Syntax

Function Desaturate ( ): L_INT;

Overview

Refer to Grayscale Images

Remarks

Converts the image to a grayscale level by reducing the saturation of each color to zero. The conversion will not change the color resolution.

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:

BalanceColors method, GrayScale method, GrayScaleExt method, IsGrayScale property

Topics:

Raster Images: Modifying Intensity Values