display images from iOS gallery -
through platform-dependent service i've managed fetch nsurl of image 1 of galleries on device. looks this: "assets-library://asset/asset.jpg?id=01202427-4916-4f8f-99aa-d38d88181558&ext=jpg". how can utilize set source of image view in xamarin.forms shared project?
i solved using stream:
var s = originalimage.aspng ().asstream (); sharedview.setimagestream(s);
in pcl side:
public void setimagestream(system.io.stream s) { theimageview.source = imagesource.fromstream(() => s); }
ios image uiimage nsurl xamarin.forms
No comments:
Post a Comment