Inpreferqualityoverspeed recommended when decode jpg in Android

Source: Internet
Author: User

In the Bitmapfactory.decodebitmap method, one of the parameter bitmapfactory.options is inpreferqualityoverspeed: If set to true, the picture quality is better and the loading time is slightly longer. The default is False.

After testing, it was found that the effect on picture quality was obvious. We recommend that you set the image-sensitive app to true.

Here is my test results, you can download my test app to change the parameters to do the experiment: http://files.cnblogs.com/files/zhucai/TestJPG.apk

This is 100 of the quality of the cycle load saved 10 times After the result, the front is the original, followed by the result diagram:

This one is inpreferqualityoverspeed to false:

This one is inpreferqualityoverspeed to true:

Inpreferqualityoverspeed recommended when decode jpg in Android

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.