EPOC   SDK Home Glossary Indexes Previous Next Up

TRgb class


TRgb class — 24-bit colour value

Compatibility

Applications that use these functions will not work correctly on a version of EPOC earlier than ER5.

Description

For an introduction to the TRgb class, see The TRgb class.

In each display mode, as enumerated by TDisplayMode, a unique index can represent each physical colours supported, and which can be mapped onto a full RGB value. The mappings are as follows:

The TRgb class has been augmented in ER5 to include mapping functions and also reverse mapping functions from RGB to the nearest physical colour index value. The corresponding greyscale and low-colour functions were present in previous EPOC releases.

The new functions are as follows:

static TRgb Color256(TInt aColor256);

static TRgb Color4K(TInt aColor4K);

static TRgb Color64K(TInt aColor64K);

static TRgb Color16M(TInt aColor16M);

TInt Color256() const;

TInt Color4K() const;

TInt Color64K() const;

TInt Color16M() const;

EPOC       SDK Home Glossary Indexes Previous Next Up