android - Is it possible to set ImageSize with displayImage ()? -
i have question regarding https://github.com/nostra13/android-universal-image-loader library.
i'm using imageloader.displayimage(...) load images database imageviews, in listview.
the docs this:
imagesize targetsize = new imagesize(120, 80); // result bitmap fit size imageloader.loadimage(imageuri, targetsize, displayoptions, new simpleimageloadinglistener() { @override public void onloadingcomplete(string imageuri, view view, bitmap loadedimage) { // whatever want bitmap } });
would possible declare target size imageloader.displayimage method?
you can use method: public void loadimage(string uri, imagesize targetimagesize, displayimageoptions options, imageloadinglistener listener)
set imagesize
parameter.
the downloaded image decoded , scaled bitmap of size equal or larger (usually bit larger) incoming targetimagesize.
Comments
Post a Comment