Over a million developers have joined DZone.
Platinum Partner

DevBytes: Bitmap Scaling

· Java Zone

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!

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. Discover how you can skip the build and redeploy process by using JRebel by ZeroTurnaround.

Topics:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}