المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Help with Drawing Polygons



C# Programming
02-04-2010, 07:00 AM
Hello once again. I just made a program to draw triangles in a way that makes a nice effect, here's a picture:

http://i276.photobucket.com/albums/kk2/Raztor0/Capture.jpg[^ (http://i276.photobucket.com/albums/kk2/Raztor0/Capture.jpg)]

Now, the way I'm drawing this is I have an array of 80 points which I'm telling C# to draw with the DrawPolygon command. Can you see that line that goes through the middle of the triangles? That line is a line connecting the first and last point in the array, can I somehow prevent C# from connecting that last line? Is there a different command that lets me connect every point in sequence?

Thanks for your time http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif