Code example for Bitmap

Methods: eraseColor

0
		if (mCommitted) {
			mBitmapContent.recycle();
			mBitmapContent = mCommittedBitmapContent.copy(Config.ARGB_8888,
					true); 
		} else { 
			mBitmapContent.eraseColor(Color.TRANSPARENT);
		} 
		if (mBitmapContent != null) {
			for (int i = 0; i <= mIndex; i++) {
				mHistory.get(i).draw(mBitmapContent, mCanvas);
			} 
		} 
	} 
 
	private void commitDrawingAtIndex(int index) {
		if (mCommittedBitmapContent != null) {
			mCommitted = true;
			for (int i = 0; i <= index; i++) {
				mHistory.get(0).draw(mCommittedBitmapContent, mCanvas);
				mHistory.remove(0);
Contextual code suggestions in your IDE  Get Codota for Java