#include <gdi.h>
Link against: gdi.lib
| class TDisplayModeUtils |
| Public Member Functions | |
|---|---|
| IMPORT_C TBool | IsDisplayModeColor(TDisplayMode) |
| IMPORT_C TBool | IsDisplayModeValid(TDisplayMode) |
| IMPORT_C TInt | NumDisplayModeBitsPerPixel(TDisplayMode) |
| IMPORT_C TInt | NumDisplayModeColors(TDisplayMode) |
A set of static utility functions to get information about a display mode.
| IMPORT_C TBool | IsDisplayModeColor | ( | TDisplayMode | aDispMode | ) | [static] |
Tests whether the display mode specified is colour or greyscale.
| Parameters | |
|---|---|
| aDispMode | The display mode. |
| IMPORT_C TBool | IsDisplayModeValid | ( | TDisplayMode | aDispMode | ) | [static] |
Tests whether the display mode specified is one of the valid values.
| Parameters | |
|---|---|
| aDispMode | The display mode to be tested. |
| IMPORT_C TInt | NumDisplayModeBitsPerPixel | ( | TDisplayMode | aDispMode | ) | [static] |
Gets the number of bits required by each pixel when displayed in the specified display mode.
| Parameters | |
|---|---|
| aDispMode | The display mode. |
| IMPORT_C TInt | NumDisplayModeColors | ( | TDisplayMode | aDispMode | ) | [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 | |
|---|---|
| aDispMode | The display mode. |