CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Posts
    18

    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

  2. #2
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured