TGopFadeParams Class Reference

class TGopFadeParams

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 .

TGopFadeRect

Member Data Documentation

TInt iOffset

TInt iOffset

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

TInt iScale

TInt iScale

Specifies the degree of fading, maximum=256.