Code example for Bitmap

Methods: eraseColor

0
		} 
	} 
	protected void onDraw( Canvas canvas )
	{ 
		if( ink == null ) return;
		bitmap.eraseColor(0);
		int bmp = Global.lockBitmap(bitmap);
		ink.OnDraw(bmp);
		Global.unlockBitmap(bitmap, bmp);
		canvas.drawBitmap(bitmap, 0, 0, null);
	} 
	public boolean onTouchEvent (MotionEvent event)
	{ 
		switch( event.getActionMasked() )
		{ 
		case MotionEvent.ACTION_DOWN:
			if( !pressed )
			{ 
				pressed = true;
				if( ink != null )