Code example for AvoidXfermode

0
 
		//TempCanvas.drawBitmap(Gameactivity.SplatWepon, new Rect(0,0,Gameactivity.SplatWepon.getWidth(),Gameactivity.SplatWepon.getHeight()), new Rect((int)(f-k/2) ,(int)(g-k/2) , (int)(f+k/2), (int)(g+k/2)), RemovePaint); 
 
 
		RemovePaint.setAlpha(0);
		RemovePaint.setXfermode(new AvoidXfermode(removeColor, 0, AvoidXfermode.Mode.TARGET));
		TempCanvas.drawPaint(RemovePaint);
 
	} 
}