Ffimageloading: [iOS] Is there a way to load image from UIImage object?

Created on 30 Sep 2016  路  4Comments  路  Source: luberda-molinet/FFImageLoading

I want to use a transformation for my image and also want to use same API to load it by FFImageLoaded. Is it possible somehow?

All 4 comments

Hi @dkornev,

I didn't understand. Could you write more details?

Hi @daniel-luberda,

Sorry. I mean that it would be nice to have a LoadDrawable method to load images from iOS UIImage:

UIImage uiImage;
ImageService.Instance.LoadDrawable(uiImage).Transform(new CircleTransformation()).Into(ivImage);

Can it be done with current version?

Not currently, but you can do something similar:

  • Get image data var stream = uiImage.AsPNG().AsStream();
  • Load that stream with ImageService.Instance.LoadStream method

I'll check if we could implement that extension method in future.

OK, got it.

Thank you very much for you help!

Was this page helpful?
0 / 5 - 0 ratings