|
||
class TGopFilledPolygon : public TGraphicsOperation;
An accelerated graphics operation that fills a polygon with a colour.
TGopFilledPolygon::AddPoints(TInt,TPoint *)
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.
How a graphics accelerator can fill polygons is given by TGraphicsAcceleratorCaps::iPolygon
.
TGraphicsOperation
- Abstract base class for all graphics operations.
TGopFilledPolygon
- An accelerated graphics operation that fills a polygon with a colour.
Defined in TGopFilledPolygon
:
AddPoints(TInt,TPoint *)
Specifies the polygon to be filled as a number of 2D point coordinates.iColor
The fill colour. iFillRule
Bit flags for how self-crossing polygons are filled.iNumPoints
The number of points in the polygon. Inherited from TGraphicsOperation
:
Append(TInt,TAny *)
EAlphaBlendOneBitmap
EAlphaBlendTwoBitmaps
EBitBlt
EBitBltAlphaBitmap
EBitBltAlphaChannel
EBitBltMasked
EBitBltTransparent
EChunkTest
EFadeRect
EFilledPolygon
EFilledPolygonWithPattern
EFilledRect
EFilledRectUsingDrawMode
EFilledRectWithPattern
EInvertRect
EScaledBitBlt
EScaledBitBltAlphaBitmap
EScaledBitBltAlphaChannel
EScaledBitBltMasked
EScaledBitBltTransparent
EVirtualAddressTest
Function()const
Next()const
Size()const
TGopFunction
TGraphicsOperation(TGopFunction,TInt)
iFunction
iSize
TGraphicsAcceleratorCaps::iPolygon
Specifies the supported fill rules for self crossing polygons. Uses a bit flag f...inline TGopFilledPolygon(TRgb aColor, CGraphicsContext::TFillRule aFillRule);
Constructor with a fill rule and a fill colour. The number of points is initialised to zero.
|
inline void AddPoints(TInt aNumPoints, TPoint *aPoints);
Specifies the polygon to be filled as a number of 2D point coordinates.
TGopFilledPolygon::AddPoints(TInt,TPoint *)
should only be called once the TGopFilledPolygon object has been stored into a buffer. There must be enough room in the buffer
after the TGopFilledPolygon object to hold aNumPoints TPoint
sized structures. This is because the points are copied into the memory space directly following the TGopFilledPolygon object.
|
CGraphicsContext::TFillRule iFillRule;
Bit flags for how self-crossing polygons are filled.
CGraphicsContext::TFillRule
Rules used to fill self crossing polygons.TInt iNumPoints;
The number of points in the polygon.