I need to be able use FFImageLoading.ImageService
to load a byte array I decoded from an image earlier, into a FFImageLoading.Views.ImageViewAsync
object. The method ImageService.Instance.LoadImage(IImageLoaderTask task)
seems to be the way but I have no idea how to set up an object of that interface and I can't find any references to using this type object on the source website.
How to load a byte[] into a ImageViewAsync
object?
Since you already have a byte[] you could you this with the
LoadStream
method.Something like:
And this is the method to do the actual work.
This should work.
In my case, it worked like this ...
Modal.cs
ViewModel.cs
View.xaml