Getting shape coordinates.
Posted on 2010-09-06
Hi, I have a problem:
I have an image of a square (for example). I want to get the coordinates of the square into an array of points.
A bit like a shape created by a “join the dots” kind of thing.
How the hell do I do this?
I’ve thought of scanning pixel by pixel across the image but this doesn’t give me a point to point array.
The purpose of this is I’ve built an application you can add shapes to on the form.
So I want to be able to draw the shapes in ms paint, then get the coordinates and import them into my application at runtime.
Just solid shapes are all I need.