首页 > 代码库 > android 图片缩放抗锯齿

android 图片缩放抗锯齿

之前用的时候只设置了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));