IsGrayscale property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example

Syntax short 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, 4, 8, 12, or 16-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.

Support for 12 and 16 bit grayscale images is only available in the Document/Medical Toolkits.

See Also

Topics:  Raster Images: Doing Color Expansion or Reduction