Grayscale method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Grayscale (int nValue);

Delphi Syntax

Grayscale (nValue:Integer): Integer;

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 !2 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