Skip to content
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

How to display bitmap object by DraweeView? #1897

Closed
rhettor opened this issue Sep 11, 2017 · 3 comments
Closed

How to display bitmap object by DraweeView? #1897

rhettor opened this issue Sep 11, 2017 · 3 comments
Labels
needs-details This issue or PR is currently not actionable as it misses details (e.g. for reproducing the problem)

Comments

@rhettor
Copy link

rhettor commented Sep 11, 2017

I found DraweeView#setImageDrawable(Bitmap bm) method is deprecated!
if I want to display bitmap object, How to do it by setController(DraweeController) ?

@erikandre erikandre added the needs-details This issue or PR is currently not actionable as it misses details (e.g. for reproducing the problem) label Sep 11, 2017
@erikandre
Copy link
Contributor

Hi @rhettor,

If you just want to display a Bitmap then using an ImageView might be easier.
Is there a particular reason why you want to use DraweeView?

@rhettor
Copy link
Author

rhettor commented Sep 12, 2017

@erikandre

Just example. I have photo filter util to modify brightness or others by user, the util just return bitmap object. First, It show online or local photo, and next drag progressBar to change brightness, finally real-time show this changed.
So, DraweeView want to display bitmap object.

@erikandre
Copy link
Contributor

OK, thanks for the explanation @rhettor

Since DraweeView is not very well suited for that use case you might want to try a workaround using 2 views:

1st view is a SimpleDraweeView that you use to load and display online/local photo
2nd view is an ImageView that you use to display the modified Bitmap

Once the user changes the brightness you could switched between view 1 & 2

@rhettor rhettor closed this as completed Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-details This issue or PR is currently not actionable as it misses details (e.g. for reproducing the problem)
Projects
None yet
Development

No branches or pull requests

2 participants