TGopFadeParams Class Reference

#include <graphicsaccelerator.h>

class TGopFadeParams
Public Attributes
TInt iOffset
TInt iScale

Detailed 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:
  • to fade to white, specify iScale=128, iOffset=128

  • to fade to black, specify iScale=128, iOffset=0

  • for no change, specify iScale=256, iOffset=0

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

See also: TGopFadeRect

Member Attribute Documentation

iOffset

TInt iOffset

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

iScale

TInt iScale

Specifies the degree of fading, maximum=256.