phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

尺寸压缩锯齿严重

Open heronghu opened this issue 6 years ago • 4 comments

你好,我把一张大图压缩尺寸,锯齿非常严重,请问有好的解决方案吗?(10001000压到100100)

heronghu avatar May 25 '18 09:05 heronghu

public static Bitmap createScaledBitmap(Bitmap src,int dstWidth,int dstHeight,boolean filter)

filter设置为true的时候会对图片做滤波处理,有抗锯齿效果。

sucese avatar May 28 '18 03:05 sucese

我以为库里有自己的方法,android原生的是不行的,锯齿很严重。

heronghu avatar May 28 '18 06:05 heronghu

我看文档有说Lanczos 采样、双立方/双三次采样,但是在代码里没有看到

heronghu avatar May 28 '18 06:05 heronghu

是的,这个需要借助第三方库,phoenix里用来还是系统原生的那一套。

sucese avatar May 29 '18 02:05 sucese