开发者

How to scale down the image for better quality on Android?

开发者 https://www.devze.com 2023-01-20 13:44 出处:网络
Now I\'m开发者_运维技巧 using the follow code to scale down the image downloaded from internet at runtime. But the result is not good enough.

Now I'm开发者_运维技巧 using the follow code to scale down the image downloaded from internet at runtime. But the result is not good enough.

Bitmap.createScaledBitmap(srcBitmap, dstWidth, dstHeight, true);

Any help? Thanks.


If the result is not good enough for you, try dividing the size of the image by 2 until you reach the size you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消