TPolygon32

Graphics32

TPolygon32

Hierarchy

TPersistent

   |

TNotifiablePersistent

   |

TThreadPersistent

Description

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.

Reference

Properties Methods Events
In TPolygon32:
Antialiased Add
AntialiasMode AddPoints
Closed Assign
FillMode Clear
Normals ContainsPoint
Points Create
Destroy
Draw
DrawEdge
DrawFill
GetBoundingRect
Grow
NewLine
Offset
Outline
Transform
In TThreadPersistent:
LockCount Lock
Unlock
In TNotifiablePersistent:
UpdateCount BeginUpdate OnChange
Changed
EndUpdate

See Also

Polygons Example, TFixedPoint