Location:
GDI.H
Link against: gdi.lib
class TDisplayModeUtils;
Description
A set of static utility functions to get information about a display mode.
Members
Defined in TDisplayModeUtils
:
IsDisplayModeColor()
, IsDisplayModeValid()
, NumDisplayModeBitsPerPixel()
, NumDisplayModeColors()
static IMPORT_C TBool IsDisplayModeColor(TDisplayMode aDispMode);
Description
Tests whether the display mode specified is colour or greyscale.
Parameters
Return value
TBool
|
ETrue if colour; EFalse if greyscale or monochrome.
|
|
static IMPORT_C TBool IsDisplayModeValid(TDisplayMode aDispMode);
Description
Tests whether the display mode specified is one of the valid values.
Parameters
Return value
TBool
|
ETrue if aDispMode is valid; EFalse if not valid.
|
|
static IMPORT_C TInt NumDisplayModeColors(TDisplayMode aDispMode);
Description
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
Return value
TInt
|
The number of colours/grey shades supported by the display mode.
|
|
static IMPORT_C TInt NumDisplayModeBitsPerPixel(TDisplayMode aDispMode);
Description
Gets the number of bits required by each pixel when displayed in the specified display mode.
Parameters
Return value
TInt
|
The number of bits required by each pixel.
|
|