Click to See Complete Forum and Search --> : Undo/Redo Drawn lines on image


ShaileshShinde
October 6th, 2005, 05:53 AM
Hi All,

I have loaded image on picturebox and drawn lines on it here i have to undo/redo drwan lines.

Is there any samples or references for the same.


Thanks,
Shailesh

jhammer
October 6th, 2005, 08:03 AM
One option you have is to store the updated Image in a collection. Every time you draw on the image, you will store a copy of the previous image inside an ArrayList (or a Stack). This way you can undo/redo the drawings. Of course this is expensive in memory.