#include <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
:
Member functions
IsDisplayModeColor(TDisplayMode)
IMPORT_C static 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.
|
|
IsDisplayModeValid(TDisplayMode)
IMPORT_C static 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.
|
|
NumDisplayModeColors(TDisplayMode)
IMPORT_C static 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.
|
|
NumDisplayModeBitsPerPixel(TDisplayMode)
IMPORT_C static 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.
|
|