I have loaded image im my app with type ImageSource
, and I want to share it, but I need to convert image to IRandomAccessStream
.
For e.g.:
ImageSource _myLoadedImage;
IRandomAccessStream ras;
//Some code when _myLoadedImage convert to IRandomAccessStream
RandomAccessStreamReference.CreateFromStream(ras);
How can I do that?