我想使用 Glide 从图像中获取位图。我正在做以下事情-
Bitmap chefBitmap = Glide.with(MyActivity.this)
.load(chef_image)
.asBitmap()
.into(100, 100)
.get();
它曾经与以前的 Glide 版本一起工作。
但它不适用于 gradle - "compile 'com.github.bumptech.glide:glide:4.0.0'"
我想使用这个依赖,因为这是最新版本。
谁能在这方面帮助我。提前致谢。
最佳答案
Bitmap chefBitmap = Glide.with(MyActivity.this)
.asBitmap()
.load(chef_image)
.submit()
.get();
关于android - 在android中使用Glide从图像中获取位图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45750020/