Skip to main content
Pie
ra0

TcxCanvas.Polygon(TPoint[]) Method

Draws a polygon on the canvas.

Declaration

procedure Polygon(const Points: array of TPoint); reintroduce; overload;

Parameters

Name Type
Points TPoint

Remarks

Call either of the overloaded procedure variants and pass an array of points as the P parameter to draw a closed multi-angled shape formed by these points. The Polygon procedures always connect the last point and the first point to close the resulting polygon.

While the first overloaded Polygon procedure variant uses the active brush and pen settings, the second variant accepts the fill and outline colors as the ABrushColor and APenColor parameters.

Note

A second procedure variant call uses the specified colors to update the active brush and pen settings. In addition, the Brush.Style property value changes to bsSolid.

See Also