TGfxColor Class Reference

class TGfxColor : public MGfxPaint

This class is an implementation of a color.

Gfx2D.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

TGfxColor(TUint32)

TGfxColor(TUint32aValue)

Construct a TGfxColor from an integer value.

Since
1.0

Parameters

TUint32 aValue

TGfxColor(TInt, TInt, TInt)

TGfxColor(TIntaRed,
TIntaGreen,
TIntaBlue
)

Construct a TGfxColor from r, g, b values.

Since
1.0

Parameters

TInt aRed: red component
TInt aGreen: green component
TInt aBlue: blue component

Member Functions Documentation

BlendRgb444(TUint32, TUint32, TUint32)

TUint32 BlendRgb444(TUint32aAlpha,
TUint32aCs1,
TUint32aCs2
)[static]

Return an integer representation of a color after blending the two colors given by integer values.

Since
1.0

Parameters

TUint32 aAlpha: the alpha channel value to blend.
TUint32 aCs1: color 1 to blend
TUint32 aCs2: color 2 to blend

ColorRgb()

TUint16 ColorRgb()

Return the integer representation of this color.

Since
1.0

ColorRgb444()

TUint16 ColorRgb444()

Return 4-bits for red, 4-bits for green, 4-bits for blue integer representation of this color.

Since
1.0

ColorRgb565()

TUint16 ColorRgb565()

Return 5-bits for red, 6-bits for green, 5-bits for blue integer representation of this color.

Since
1.0

GetABGR()

TUint32 GetABGR()

GetARGB()

TUint32 GetARGB()

GetColor()

TUint32 GetColor()[virtual]

Implementation of MGfxPaint method to get an array of color values. The given buffer array is filled with this color value.

Since
1.0
Since
1.0

SetFill(VGPaint, TGfxRectangle2D &, TFloatFixPt, void *)

voidSetFill(VGPaintaFillPaint,
TGfxRectangle2D &aBBox,
TFloatFixPtaOpacity,
void *GfxContext
)[virtual]

Parameters

VGPaint aFillPaint
TGfxRectangle2D & aBBox
TFloatFixPt aOpacity
void * GfxContext

Member Data Documentation

TUint32 iColor

TUint32 iColor