Skip to main content

TcxCustomCanvas.Polygon(TPoint[],TColor,TColor) Method

Draws a polygon on the canvas.

Declaration

procedure Polygon(const P: array of TPoint; ABrushColor: TColor; APenColor: TColor); overload; virtual;

Parameters

Name Type
P TPoint
ABrushColor TColor
APenColor TColor

Remarks

Call this procedure and pass an array of points as the P parameter to draw a closed multi-angled shape formed by these points. The Polygon procedure always connects the last point and the first point to close the resulting polygon. Use the ABrushColor and APenColor parameters to define the fill and outline colors of the polygon.

See Also