TDisplayModeUtils Class Reference

#include <gdi.h>

Link against: gdi.lib

class TDisplayModeUtils

Detailed Description

A set of static utility functions to get information about a display mode.

Member Function Documentation

IsDisplayModeColor ( TDisplayMode )

IMPORT_C TBoolIsDisplayModeColor(TDisplayModeaDispMode)[static]

Tests whether the display mode specified is colour or greyscale.

Parameters
aDispModeThe display mode.
Return Value
ETrue if colour; EFalse if greyscale or monochrome.

IsDisplayModeValid ( TDisplayMode )

IMPORT_C TBoolIsDisplayModeValid(TDisplayModeaDispMode)[static]

Tests whether the display mode specified is one of the valid values.

Parameters
aDispModeThe display mode to be tested.
Return Value
ETrue if aDispMode is valid; EFalse if not valid.

NumDisplayModeBitsPerPixel ( TDisplayMode )

IMPORT_C TIntNumDisplayModeBitsPerPixel(TDisplayModeaDispMode)[static]

Gets the number of bits required by each pixel when displayed in the specified display mode.

Parameters
aDispModeThe display mode.
Return Value
The number of bits required by each pixel.

NumDisplayModeColors ( TDisplayMode )

IMPORT_C TIntNumDisplayModeColors(TDisplayModeaDispMode)[static]

Gets the number of colours or shades of grey supported by the specified display mode.

For instance, a display mode of EGray4 returns 4, EColor4K returns 4096.

Parameters
aDispModeThe display mode.
Return Value
The number of colours/grey shades supported by the display mode.