Author: Dave BootsmaDave Bootsma
Date: Sep 8, 2008 13:15
I have an application where I want to redraw a polygon from points I
retrieve from a file.
The file is read with streamreader line by line each line contains the
points for each polygon.
Below is a typical line from my file.
500,748 500,678 552,678 552,696 584,696 584,714 612,714 612,748
Each set of x,y coordinates is separated by a space.
How can I read this into my points collection. If I currently try I get
can't convert issues.
Here's code I have been hacking and slashing
Dim blueBrush As New SolidBrush(Color.Blue)
Dim curvePoints As Point()
Dim part As Integer
Dim part2 As Integer
Dim pts As Point
Dim formGraphics2 As System.Drawing.Graphics = Me.CreateGraphics()
|