Closed lennertsneyders closed 7 years ago
I cannot draw over a bitmap. The line vanishes.
@ravir13 you can implement by add one line code:
public void loadImage(Bitmap bitmap) {
mBitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true);
+ mCanvas = new Canvas(mBitmap);
bitmap.recycle();
invalidate();
}
When I draw some lines or when I load a bitmap in the view, how to clear it so I can start over again?