Over a million developers have joined DZone.

DevBytes: Bitmap Scaling

· Java Zone

Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code! Brought to you in partnership with ZeroTurnaround.

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

The Java Zone is brought to you in partnership with ZeroTurnaround. Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code!

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}