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

浪子不回头ぞ 提交于 2019-12-13 19:48:55

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/3964939/how-to-scale-down-the-image-for-better-quality-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!