TGopFilledPolygonWithPattern Class Reference

class TGopFilledPolygonWithPattern : public TGraphicsOperation

An accelerated graphics operation that fills a polygon with a pattern held in another bitmap.

AddPoints() must be called to specify the polygon to be filled. Objects of this class can be passed to a graphics accelerator's Operation() function either individually, or in a buffer.

TGraphicsAcceleratorCaps::iPolygon TGopFillPattern

Inherits from

Constructor & Destructor Documentation

TGopFilledPolygonWithPattern(TGopFillPattern, CGraphicsContext::TFillRule)

TGopFilledPolygonWithPattern ( TGopFillPattern aPattern,
CGraphicsContext::TFillRule aFillRule
) [inline]

Constructor with a fill pattern and a fill rule. The number of points is initialised to zero.

Parameters

TGopFillPattern aPattern The fill pattern.
CGraphicsContext::TFillRule aFillRule Bit flags for how self-crossing polygons are filled.

Member Functions Documentation

AddPoints(TInt, TPoint *)

void AddPoints ( TInt aNumPoints,
TPoint * aPoints
) [inline]

Specifies the polygon to be filled as a number of 2D point coordinates.

AddPoints() should only be called once the TGopFilledPolygonWithPattern object has been stored into a buffer. There must be enough room in the buffer after the TGopFilledPolygonWithPattern object to hold aNumPoints TPoint sized structures. This is because the points are copied into the memory space directly following the TGopFilledPolygonWithPattern object.

Parameters

TInt aNumPoints The number of points in the polygon.
TPoint * aPoints Pointer to the first point in the polygon.

Member Data Documentation

CGraphicsContext::TFillRule iFillRule

CGraphicsContext::TFillRule iFillRule

Bit flags for how self-crossing polygons are filled.

CGraphicsContext::TFillRule

TInt iNumPoints

TInt iNumPoints

The number of points in the polygon.

TGopFillPattern iPattern

TGopFillPattern iPattern

The pattern of bitmaps that is used to fill the polygon.