Bitmap Flags

3DS Max Plug-In SDK

Bitmap Flags

See Also: Class BitmapStorage.

The following flag bits describe properties of the bitmap:

MAP_READY

This bitmap has had memory allocated to it, or is accessible directly.

MAP_HAS_ALPHA

The bitmap has an alpha channel. This flag can be checked from a BitmapInfo instance (bi.Flags()&MAP_HAS_ALPHA)), but not from a Bitmap instance (bmap->Flags() & MAP_HAS_ALPHA). Therefore if you have a Bitmap, use the Bitmap's HasAlpha() method to see if the map has an alpha channel.

MAP_ALPHA_PREMULTIPLIED

The bitmap has pre-multiplied alpha.

MAP_PALETTED

The bitmap uses a palette (not true color).

MAP_DITHERED

The bitmap is dithered.

MAP_FLIPPED

The bitmap is flipped horizontally.

MAP_INVERTED

The bitmap is inverted vertically.

MAP_USE_SCALE_COLORS

This option is available in release 4.0 and later only.

The bitmap should scale colors when high dynamic range values are out of gamut.

MAP_LEGAL_DELETE

This flag is for internal use only.

MAP_VIEW_FILTERED

This flag is used for testing internally.

MAP_FRAME_SYSTEM_LOCKED

This flag is no longer used.

MAP_NOFLAGS

The bitmap has none of the characteristics below.

MAP_ALL_FLAGS

Indicates ALL the flags are set.