Skip to main content

TcxCustomCanvas.FillPolygon(TPoint[],TColor) Method

Draws a polygon filled with a designated color.

Declaration

procedure FillPolygon(const P: array of TPoint; AColor: TColor); overload; virtual;

Parameters

Name Type
P TPoint
AColor 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 FillPolygon procedure always connects the last point and the first point in an accepted array to close the resulting polygon. Use the AColor parameter to specify a color to fill the polygon.

Note

The FillPolygon procedure calls the Polygon procedure internally to draw a polygon filled with a single color.

See Also