Question to draw polygon

andrews

Well-known member
Joined
Nov 22, 2011
Messages
132
Programming Experience
5-10
I have a array of points with coodinates
(ar can have f.e. 200 points)
ar(1,0) = 1
ar(1,1) = 10
ar(2,0) = 5
ar(2,1) = 15
..
..

where
point1
x = 1
y = 10
point2
x = 5
y = 15


How can I draw the polygon with these points

f.e.
for i = 1 to ar.getupperbounds(0)
??
next

g.drawpolygon(???

I can not go from ar to drawpolygon

Thanks for any response
 
What do you not understand about what you read in the MSDN documentation for the Graphics.DrawPolygon method? At the very least, you should know that you need to pass a Pen and an array*of Point. What*happened when you did that?
 
Back
Top