In addition to common polygon drawing functions, Graphics32 provides an auxiliary class TPolygon32, which may be used for storing and drawing polygons and polylines, allowes drawing of lines and polylines more than 1 pixel wide and provides some morphological modifications of polygons.
TPolygon32 is capable of storing more than a single polygon, it can represent a shape, outlines by several polygons, referred here as contours and specified in Points property. This allows rendering of comples shapes (with holes, etc.). In future versions we plan to implement direct TTF or Type1 font rendering.
Contour is considered as a closed polygon if the Closed property is True, otherwise it is treated as polyline. Each contour is, in turn, a dynamic array of TFixedPoint.
Polygons may be constructed by modifying other polygons using the Grow method or by adding sequentially new points with Add or starting new contours with NewLine.
Methods | Properties | Events |
---|---|---|
In TPolygon32: | ||
Add | Antialiased | |
AddPoints | AntialiasMode | |
Assign | Closed | |
Clear | FillMode | |
ContainsPoint | Normals | |
Create | Points | |
Destroy | ||
Draw | ||
DrawEdge | ||
DrawFill | ||
GetBoundingRect | ||
Grow | ||
NewLine | ||
Offset | ||
Outline | ||
Transform | ||
In TThreadPersistent: | ||
Lock | LockCount | |
Unlock | ||
In TNotifiablePersistent: | ||
BeginUpdate | UpdateCount | OnChange |
Changed | ||
EndUpdate |
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024