How to implement touch smooth image eraser in android?
问题 I have already seen fingurePaint.java from API demos. I want to implement touch smooth eraser to erase parts of the image by touch move in android. fingurePaint told me to implement this mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); But this is not working to erase the image. It is working to erase something which is drawn by touch. public class SandboxView extends View implements OnTouchListener { public final Bitmap bitmap; private final int width; private final int