0

I'm doing a kidsbook app in this I have a paint functionality here using bitmap am getting erase function using this code

try {
   myview = new MyView(this);
   mBitmap.eraseColor(android.graphics.Color.WHITE);
   Canvas Canvas = new Canvas(mBitmap);
   action = true;
   myview.onDraw(Canvas) \
} catch(IllegalStateException ie) {
   ie.printStackTrace();
}

but am not getting how to undo paint using bitmap.

Charles
  • 50,943
  • 13
  • 104
  • 142
user1089640
  • 115
  • 1
  • 3
  • 14
  • I hope this helps you.. http://stackoverflow.com/questions/7633282/android-add-undo-feature-to-finger-paint-example-in-api-demo Thanks. – anddev Jan 25 '12 at 06:09
  • [check this](http://www.tutorialforandroid.com/2010/11/drawing-with-canvas-in-android-undoredo.html) I have not tried.But i think it will help you for some extent. – Hema Feb 24 '12 at 07:21

0 Answers0