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.
Examples, Point Types
Copyright ©2000-2016 Alex Denisov and the Graphics32 Team - Graphics32 v2.0 - Built on 25-April-2017