Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomCanvas.FillPolygon(TPoint[],TColor) Method

Draws a polygon filled with a designated color.

#Declaration

Delphi
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