View Single Post
  #6 (permalink)  
Old 10-23-2008, 04:01 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by derez View Post
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 ( (10120), (200120), (200200), (10200))
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))

Last edited by agraham : 10-23-2008 at 04:11 PM.
Reply With Quote