public void clear() { Paint paint = new Paint(); paint.setXfermode(new PorterDuffXfermode(Mode.CLEAR)); canvas.drawPaint(paint); paint.setXfermode(new PorterDuffXfermode(Mode.SRC)); invalidate(); }
详细请看:http://trylovecatch.iteye.com/blog/1189452
时间: 2024-10-01 02:51:08