Can Android-Universal-Image-Loader load bitmaps into memory scaled down, like this: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html ?
Thanks!
I'm loading images like this:
final ImageSize size = new ImageSize(MAX_W, MAX_H);
final DisplayImageOptions options = new DisplayImageOptions.Builder()
.imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2)
.build();
ImageLoader.getInstance().loadImage(uri.toString(), size, options, new ImageLoadingListener() { And I have two issues:
- The resulting bitmap often has a height or width greater than the max I specified.
- I worry it loaded the entire bitmap into memory and just scaled it down, which will fail with large images in low memory scenarios.
inSampleSize? - CommonsWare