Feature request: load to Bitmap instead of ImageViewAsync
See original GitHub issueFFImageLoading is pretty fantastic. I have a use case where I’m making Android notifications that require Bitmap
s. Could you make an overload of Into
that loads into Bitmap
s or something similar instead of ImageViewAsync
s?
I did try making a SideEffectTransformation
that would copy the bitmap in directly, but immediately worried that caching would prevent future notifications with the same image from displaying properly.
And I tried loading into an ImageViewAsync and doing Draw
to draw into a bitmap, but the resulting bitmap was transparent even with FadeAnimation(false)
.
Thanks for all your hard work!
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
FFImageLoading : load into an ImageButton
In Xamarin.Android, to load an image using FFImageLoading, a ImageViewAsync must be used instead of a standard ImageView. I couldn't find what I ......
Read more >Associate file extension with Xamarin Android application
How to load embedded resource into an Android Bitmap with Xamarin? ... App version 1.0.0, but with current settings, version 2.0.9 would be...
Read more >Advanced Usage - luberda-molinet/FFImageLoading GitHub ...
Then you can use IntoAsync() instead of Into() try { // IntoAsync does not swallow ... If you want to stop pending loading...
Read more >MOLA_v1.4_apkpure.com.apk
MOLA_v1.4_apkpure.com.apk. This report is generated from a file or URL submitted to this webservice on June 13th 2019 21:07:28 (UTC)
Read more >Byte array image example. It was quite tricky to get working - Fit
Byte data is backed by a BytesBuffer and you can get different views of the underlying bytes. I'm using BitmapData. open System //...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You have mixed different FFImageLoading versions in your projects, also remove all bin / obj folders
On Nov 29, 2017 21:35, “Victor Finney” notifications@github.com wrote:
Currently, you should use:
await ImageService.Instance.LoadFile(xxx).DownSample(width: xxx).AsBitmapDrawableAsync()
for Androidawait ImageService.Instance.LoadFile(xxx).DownSample(width: xxx).AsUIImageAsync()
for iOSawait ImageService.Instance.LoadFile(xxx).DownSample(width: xxx).AsBitmapDrawableAsync()
for Windows (yeah I noticed bad naming, we should change it in future)Please mind that on Androidyou should call SetNoLongerDisplayed method if drawable is no longer displayed when not using it with
ImageViewAsync
(which does it automatically)