Undo/Redo Drawn lines on image
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
# 1 Re: Undo/Redo Drawn lines on image
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.