Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: GraphicsAccelerator.h

Class TGopFadeParams

class TGopFadeParams;

Description

Specifies the amount of fading for all the pixels in a rectangular area.

Fading changes colours so that they are closer to white or closer to black. To make colours whiter, increase iOffset; to use a smaller range of colours, reduce iScale. Fading uses the following formula (where C is a red, green or blue value in a TRgb):

colour component C = ( ( iScale * C ) / 256 )+iOffset;

For example:

An object of this class is specified when constructing a TGopFadeRect.

Members

Defined in TGopFadeParams:
iOffset, iScale

See also:


Member data


iScale

TInt iScale;

Description

Specifies the degree of fading, maximum=256.


iOffset

TInt iOffset;

Description

The fading offset. Specifies whether to fade to black or to white.