Quote:
Originally Posted by derez
in the help file:
DrawLines (pen As Pen, x1 As Int32, xy(n,2))
|
Sorry, that's a cut and paste error in the help, the x1 shouldn't be there. Look at lines 126 & 127 in the Main.DrawLine Sub for an example.
Code:
Points() = Array ( (10, 120), (200, 120), (200, 200), (10, 200))
BackDrawerEx.DrawLines(PenEx.Value, Points())
EDIT :- I may not have understood your question correctly. DrawLines connects all the points in the array by drawing lines between them in sequence. Draw Polygon is the same except it also joins the first and last point together to close the polygon. To draw from point 2 diectly to point 7 do something like
DrawLine(PenEx.Value, points(2,0), point(2,1), points(7,0), point7,1))