[英]How to get height and width of image with Android Universal Image Loader?
如何访问使用Android Universal Image Loader加载的图像的高度和宽度?
You can get Bitmap of image when image was loaded using ImageLoadingListener: 使用ImageLoadingListener加载图像时,可以获取图像的位图:
imageLoader.displayImage(imageUrl, imageView, [options], new SimpleImageLoadingListener() {
@Override
public void onLoadingComplete(Bitmap loadedImage) {
int width = loadedImage.getWidth();
int height = loadedImage.getHeight();
//...
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.