Paint paint = new Paint();
paint.setXfermode(new PorterDuffXfermode(Mode.CLEAR));
canvas.drawPaint(paint);
paint.setXfermode(new PorterDuffXfermode(Mode.SRC));
参考链接:http://stackoverflow.com/questions/4650755/clearing-canvas-with-canvas-drawcolor
Paint paint = new Paint();
paint.setXfermode(new PorterDuffXfermode(Mode.CLEAR));
canvas.drawPaint(paint);
paint.setXfermode(new PorterDuffXfermode(Mode.SRC));
参考链接:http://stackoverflow.com/questions/4650755/clearing-canvas-with-canvas-drawcolor
本文标题:Android清除canvas内容
本文链接:https://www.haomeiwen.com/subject/lyihgttx.html
网友评论