IsGrayscale property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int IsGrayscale

Delphi Syntax

IsGrayscale: Integer

Overview

Refer to Examining and Altering Bitmaps.

Remarks

Is an indicator of the kind of grayscale palette, if any, that a bitmap has.

Grayscale images can be 1-bit, 4-bit, or 8-bit. With a 1-bit image, you can use this property to check for inversion (for example, white lines on a black background) caused by an inverted palette.

Value

Meaning

GRAY_NO

Not grayscale.

GRAY_ORDEREDNORMAL

Normally ordered grayscale (dark to light).

GRAY_ORDEREDINVERSE

Reverse ordered grayscale (light to dark).

GRAY_NOTORDERED

Unordered grayscale.

See Also

Topics:

Raster Images: Doing Color Expansion or Reduction