IsGrayscale property (ILEADRaster)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

GrayScaleTypes IsGrayscale

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