android simpledraweeview 获取已经加载的图片bitmap

 
  
Uri uri= Uri.parse(str_url);//str_url 你的url地址
Bitmap bitmap =returnBitmap(uri);


private Bitmap returnBitmap(Uri uri) {

    Bitmap bitmap = null;
    FileBinaryResource resource = (FileBinaryResource) Fresco.getImagePipelineFactory().getMainDiskStorageCache().getResource(new SimpleCacheKey(uri.toString()));
    File file = resource.getFile();
    bitmap = BitmapFactory.decodeFile(file.getPath());
    return bitmap;

}

你可能感兴趣的:(android)