Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding Undo feature in FingerPaint program bundled with APIdemos

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am playing with the FingerPaint application that comes bundled with the API demos package. I was wondering if I could add an "Undo" feature to it, which would allow the user to remove/undo his latest stroke drawing from the canvas. I am not sure of how to achieve this though.

I was looking at the android.graphics.Canvas class and therein I found a few methods that caught my interest.
Canvas.restore() and Canvas.save(). But they dont work the way, I believed they should.

If anyone here has done anything similar and can help me, I'd be obliged.

Thanks.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have also asked this question here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic