#include <icl/imageprocessor.h>
class TColorConvertor |
Public Member Functions | |
---|---|
pure virtual TRgb | Color(TInt) |
pure virtual TInt | ColorIndex(TRgb) |
pure virtual void | ColorToIndex(TInt *, TRgb *, TInt) |
IMPORT_C TColorConvertor * | NewL(TDisplayMode) |
TInt | RgbToMonochrome(TRgb) |
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.
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.
Parameter | Description |
---|---|
aColorIndex | The colour in RGB format. |
Returns: The RGB value.
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.
Parameter | Description |
---|---|
aColor | The colour in RGB format. |
Returns: The colour index.
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.
Parameter | Description |
---|---|
aIndexBuffer | A pointer to the first element in destination array. |
aColorBuffer | A pointer to the first element in the source array. |
aCount | The number of elements to get. |
IMPORT_C TColorConvertor * | NewL | ( | TDisplayMode | aDisplayMode | ) | [static] |
Static factory function for creating instances of TColorConvertor derived classes based on the supplied display mode.
Parameter | Description |
---|---|
aDisplayMode | The display mode. This determines the TColorConvertor derived type returned. |
Returns: A pointer to a fully constructed TColorConvertor derived object.