Mobile Zone is brought to you in partnership with:

Mitch Pronschinske is a Senior Content Analyst at DZone. That means he writes and searches for the finest developer content in the land so that you don't have to. He often eats peanut butter and bananas, likes to make his own ringtones, enjoys card and board games, and is married to an underwear model. Mitch is a DZone Zone Leader and has posted 2573 posts at DZone. You can read more from them at their website. View Full User Profile

DevBytes: Bitmap Scaling

04.18.2013
| 1290 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...