-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returning a bitmap #55
Comments
you should use |
Do you have an example? |
As @deathlord87 suggested, use a custom target. https://github.com/bumptech/glide/blob/master/library/src/com/bumptech/glide/presenter/target/SimpleTarget.java is a great place to start. The line would look something like: Glide.load(yourModel).into(new SimpleTarget() {
@Override
public void onImageReady(Bitmap bitmap) {
doSomethingWithBitmapHere(bitmap);
}
@Override
public int[] getSize() {
return new int[] { desiredWidth, desiredHeight };
}
} |
|
|
|
Hi, Any ideas? I will try to debug your source code. |
You're probably doing .into(SimpleTarget);? For anything other than I know its a flaw in the api (I regularly forget myself) and it has been |
Yes, I just found that a few minutes ago.. |
Is there a way to return a bitmap using glide? How would I go about this?
The text was updated successfully, but these errors were encountered: