This is how it's done:
Point[] curvePoints = new Point[0];
in the mousedown event, add a point like this:
addPoint(curvePoints, new Point(e.X,e.Y));
You have to define the addPoint func to add a point.
(you could use a System.Collections.Array, wich have it predefined, but it lowers performance...)
The add func should look like this: (written from head...)
add(params Point[] p){
Point[] tmp = new Point[curvePoints.Length + p.Length];
curvedPoints.CopyTo(tmp, 0);
p.CopyTo(tmp, curvedPoints.Length);
curvedPoints = tmp;
}
I don't got time to write anymore...
Have fun with this code
Happy coding wishes
the one and only
Niklas Ulvinge aka IDK