Grayscale method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short Grayscale (ILEADRaster *pRaster, short iBitsPerPixel);

Overview

Refer to Examining and Altering Bitmaps.

Remarks

Converts a 1-, 4-, 8-, 16-, 24-, or 32-bit bitmap to an 8, 12, or 16-bit grayscale bitmap. Support for 12 and 16-bit grayscale images is only available 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

Topics:

Raster Images: Doing Color Expansion or Reduction