如何缩小图像在Android上更好的质量? [英] How to scale down the image for better quality on Android?
本文介绍了如何缩小图像在Android上更好的质量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我使用的是后续code缩减在运行时从互联网上下载的图像。但结果是不够的。
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.
推荐答案
如果结果不是你不够好,尝试除以2图像的大小,直到达到您想要的大小。
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.
这篇关于如何缩小图像在Android上更好的质量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文