TGopTransparency Class Reference

#include <graphicsaccelerator.h>

class TGopTransparency

Detailed Description

Specifies which pixels should be treated as transparent in a bitblt operation that supports transparency.

This is used by the TGopBitBltTransparent and TGopScaledBitBltTransparent graphics operations.

For the possible transparency types, see the TTransparencyType enumeration.

An object of this class is specified when constructing a TGopBitBltTransparent or TGopScaledBitBltTransparent.

See also: TTransparencyType TGopBitBltTransparent TGopScaledBitBltTransparent

Member Attribute Documentation

iParam

TUint32 iParam

Holds the value of the colour/pixel that is treated as transparent.

iType

The transparency type.

Constructor & Destructor Documentation

TGopTransparency ( TTransparencyType )

TGopTransparency(TTransparencyTypeaType)[inline]

Constructor with a transparency type. iParam is initialised to zero.

ParameterDescription
aTypeThe transparency type.

TGopTransparency ( TInt )

TGopTransparency(TIntaPixelValue)[inline]

Constructor with a pixel value. The type is initialised to ETransparentPixel. Any pixel that has a value equal to aPixelValue is treated as transparent. aPixelValue is the bit pattern of the pixel as stored in the bitmap.

ParameterDescription
aPixelValueThe pixel value.

TGopTransparency ( TRgb )

TGopTransparency(TRgbaRgb)[inline]

Constructor with a TRgb value. The type is initialised to ETransparentColor. Any pixel that has a color of aRgb is treated as transparent.

ParameterDescription
aRgbThe TRgb value.

Member Function Documentation

Color ( )

TRgb Color()const [inline]

Gets the colour that is treated as transparent. This is the value of iParam as a TRgb.

Returns: The colour that is treated as transparent.

Pixel ( )

TInt Pixel()const [inline]

Gets the value of the colour as a TInt that is treated as transparent. This is the value of iParam.

Returns: The colour that is treated as transparent. This is the bit pattern of the colour as stored in the bitmap.