I encounter a problem when I use canvas.clipPath, it shows a sawtooth, it looks nonsmooth, I know that if I used Paint, I can use mPaint.setFlags (Paint.ANTI_ALIAS_FLAG), it can smooth, but in my code, I can’t use paint.
public static void drawCurrentPageArea(Canvas canvas, Bitmap bitmap) {
you can see that I am using canvas.drawBitmap (bitmap, 0, 0, null); paint is zero. If I need to add paint, can you give some advice? fig. http://i.6.cn/cvbnm/36/5c/20/5d8d20e3bafe432d792793509f99131e.jpg
edit: I set the paint to be null but not affect
source share