| class TColorConvertor |
Interface to colour conversion classes for various display modes. Manages the mapping between RGB/Greyscale values and the index into the color palette for the given display mode.
| Public Member Functions | |
|---|---|
| TRgb | Color(TInt) |
| TInt | ColorIndex(TRgb) |
| void | ColorToIndex(TInt *, TRgb *, TInt) |
| IMPORT_C TColorConvertor * | NewL(TDisplayMode) |
| TInt | RgbToMonochrome(TRgb) |
| TRgb | Color | ( | TInt | aColorIndex | ) | const [pure virtual] |
Returns the RGB value corresponding to the supplied colour index. Operates in the context of the current display mode.
This is a virtual function that each derived class must implement.
| TInt aColorIndex | The colour in RGB format. |
| TInt | ColorIndex | ( | TRgb | aColor | ) | const [pure virtual] |
Returns the colour index corresponding to the supplied RGB value. Operates in the context of the current display mode.
This is a virtual function that each derived class must implement.
| TRgb aColor | The colour in RGB format. |
| void | ColorToIndex | ( | TInt * | aIndexBuffer, |
| TRgb * | aColorBuffer, | |||
| TInt | aCount | |||
| ) | const [pure virtual] | |||
Gets an array of colour indices from a corresponding array of RGB values. Operates in the context of the current display mode.
This is a virtual function that each derived class must implement.
| IMPORT_C TColorConvertor * | NewL | ( | TDisplayMode | aDisplayMode | ) | [static] |
Static factory function for creating instances of TColorConvertor derived classes based on the supplied display mode.
| TDisplayMode aDisplayMode | The display mode. This determines the TColorConvertor derived type returned. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.