之前用的时候只设置了antialias属性,其实要设置两个flag才行
1 paint.setFlags(Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG); 2 //或者 3 canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG));
android 图片缩放抗锯齿
时间: 2024-11-29 11:27:52