Articles in this section
Category / Section

How to save image to stream in UWP ImageEditor?

1 min read


In SfImageEditor we can save image as a stream, Using ImageSaving event.


Step 1: Create SfImageEditor sample with all necessary assemblies.


Please refer the below link to create a simple SfImageEditor sample along with the ways to configure it.


Step 2: Use ImageSaving event to get stream while saving the image.


The following code snippet illustrates the way to this method,


Code Snippet:


private void editor_ImageSaving(object sender, ImageSavingEventArgs args)
    IRandomAccessStream stream = args.Stream.AsRandomAccessStream();
    var bitmap = new BitmapImage();
    ImageStream.Source = bitmap;


Sample link:

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment