I have used (visual studio, windows form, c#) to create some drawings.
My goal is to add save button to save the drawing as it is and when I open the saved file in future I can continue my old work...
What happen now is every time I open visual studio I have to redraw every thing .
The first task is collecting the data you draw in a
List<T>
. For code on how to collect them see (all) my comments here or Reza's answer here.Here is an example to save & load simple
PointF
lists you can use to draw curves:If you want to save a more complex class of drawing actions replace
PointF
byyourClass
. Make sure the class is serializable! (Points
are fine,ints
andstrings
of course as well;Colors
need a little help..)For hints on how to design a more complex draw action class see here