TTeeCanvas.Polygon
TTeeCanvas
procedure Polygon(Const Points: array of TPoint); virtual; abstract;
Unit
TeCanvas
Description
Use Polygon to draw a closed, many-sided shape on the canvas, using the value of Pen. After drawing the complete shape, Polygon fills the shape using the value of Brush.
To draw a polygon on the canvas, without filling it, use the Polyline method, specifying the first point a second time at the end.
Use the Slice function to pass a portion of an array of points to the Polygon method. For example, to form a polygon from the first ten points from an array of 100 points, use the Slice function as follows:
Canvas.Polygon(Slice(PointArray, 10));