Desaturate method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short Desaturate (ILEADRaster *pRaster);

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 function 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

Topics:

Raster Image Functions: Modifying Intensity Values