Applications that use this class will not work correctly on a version of EPOC earlier than ER5.
The new colour manipulation class EikColorUtils is defined in eikcolor.h
. It provides the following functions:
TRgb ColorAdjust(TRgb aColour,TInt aPercentage);
- This function adjusts a physical colour by a percentage value, and returns the adjusted value. The red, green and blue values are all adjusted by the percentage value specified. A value lower than 100 will give a darker colour, a value greater than 100 will give a lighter colour.
TRgb ColorAdjust(TEikLogicalColor aLogicalColor,TInt aPercentage,CEikonEnv* aEnv=NULL);
- This function adjusts the physical colour which maps to the logical colour specified, by a percentage, and returns the adjusted physical colour. The aEnv parameter may be omitted.