RAD Studio
ContentsIndex
PreviousUpNext
Drawing Polylines

In addition to individual lines, the canvas can also draw polylines, which are groups of any number of connected line segments. 

To draw a polyline on a canvas, call the Polyline method of the canvas. 

The parameter passed to the Polyline method is an array of points. You can think of a polyline as performing a MoveTo on the first point and LineTo on each successive point. For drawing multiple lines, Polyline is faster than using the MoveTo method and the LineTo method because it eliminates a lot of call overhead.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!