Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: GraphicsAccelerator.h

Class TGopTransparency

class TGopTransparency;

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.

Members

Defined in TGopTransparency:
Color(), Pixel(), TGopTransparency(), TGopTransparency(), TGopTransparency(), iParam, iType

See also:


Construction and destruction


TGopTransparency()

inline TGopTransparency(TTransparencyType aType);

Description

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

Parameters

TTransparencyType aType

The transparency type.


TGopTransparency()

inline TGopTransparency(TInt aPixelValue);

Description

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.

Parameters

TInt aPixelValue

The pixel value.


TGopTransparency()

inline TGopTransparency(TRgb aRgb);

Description

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

Parameters

TRgb aRgb

The TRgb value.

[Top]


Member functions


Color()

inline TRgb Color() const;

Description

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

Return value

TRgb

The colour that is treated as transparent.


Pixel()

inline TInt Pixel() const;

Description

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

Return value

TInt

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

[Top]


Member data


iType

TTransparencyType iType;

Description

The transparency type.


iParam

TUint32 iParam;

Description

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