RAD Studio
ContentsIndex
PreviousUpNext
Drawing Polygons

To draw a polygon with any number of sides on a canvas, call the Polygon method of the canvas. 

Polygon takes an array of points as its only parameter and connects the points with the pen, then connects the last point to the first to close the polygon. After drawing the lines, Polygon uses the brush to fill the area inside the polygon. 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!