Mobile Zone is brought to you in partnership with:

Mitch Pronschinske is the Lead Research Analyst at DZone. Researching and compiling content for DZone's research guides is his primary job. He likes to make his own ringtones, watches cartoons/anime, enjoys card and board games, and plays the accordion. Mitch is a DZone Zone Leader and has posted 2576 posts at DZone. You can read more from them at their website. View Full User Profile

DevBytes: Bitmap Scaling

04.19.2013
| 1446 views |
  • submit to reddit

Learn how the use of BitmapOptions affects the resulting size of a loaded
bitmap.

Sub-sampling can speed up load times and reduce the need for large bitmaps
in memory if your target bitmap size is much smaller, although it's good to understand
that you can't get specific Bitmap sizes, but rather power-of-two reductions in sizes.

Code Zip
http://developer.android.com/shareabl...