PolyLine

<< Click to Display Table of Contents >>

Navigation:  Drawing Functions >

PolyLine

Previous pageReturn to chapter overviewNext page

Creates a PolyLine object using the current pen. After a call to this method, the created PolyLine Object is ready for use with the method AddPolyPoint() (.NET: AddPoint).

method TVPEPolyLine [pointer] VPE.PolyLine(

long Count

)

long Count

maximum number of points (coordinates) that can be stored in this object. One point is a pair of one x and one y value.

Returns:

VCL

a handle to the object, which can be used in further calls to AddPolyPoint()

ActiveX, .NET, Java, …

a TVPEPolyLine object, which offers the method AddPoint().

Remarks:

If you have to draw a huge number of lines at once, this method is much faster and saves memory compared to the method Line().

 

There is also an "Important Note About Pens, Lines, Frames, Circles and Ellipses" in the Programmer's Manual.