This method draws a polyline.

[Visual Basic] As Boolean Public Function DrawPolyline(pt As Point())
[C#] public bool DrawPolyline(Point[] pt);

Parameters

pt

The array of Point structures that designate the points of the polyline

Return Value

Returns True if successful, otherwise returns False.

Explanation

The DrawPolyline method draws a polyline. To draw a polyline, set appropriate values in the PenWidth and ForeColor properties. Set the array of Point structures that designate the points of the polyline in the DrawPolyline's pt parameter. There must be 2 or more Points set in the pt parameter. When the DrawPolyline method is executed, the polyline will be drawn. If a portion of the polyline lies outside the ImageKit control, the polyline will be resized to fit  completely within the ImageKit control.

To delete the polyline drawn with the DrawPolyline method, right click the object and display the context menu, the select "Undo" or execute the Undo method.

The DrawPolyline method can be used without setting the EditKind property to KindOfEdit.Polyline.

It is also possible to draw a polyline by setting the EditKind property to KindOfEdit.Polyline then, on the base image displayed in the ImageKit control, use the mouse. For more details, please refer to the Edit Overview.

See also

ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET2 is created by Newtone Corporation