Getting Started with SfImageEditor

15 Nov 20233 minutes to read

This section explains the steps required to load an image to the image editor control. It has a built-in toolbar that helps in performing various editing operations such as flip, crop, rotate, save, annotating with shapes, text, path (i.e. free hand drawing), zoom, and pan.

Adding ImageEditor reference

Refer to this document to learn how to add Syncfusion controls in Visual Studio projects through various ways. Refer to this document to learn about the assemblies required for adding ImageEditor to your project.

Initialize ImageEditor

Import the Image editor namespace as demonstrated in the following code snippet.

using Syncfusion.UI.Xaml.ImageEditor;

You can either use the below schemas or the above mentioned namespace to refer the ImageEditor control in xaml.


Then, initialize the image editor as demonstrated in the following code snippet.

SfImageEditor editor = new SfImageEditor();

Loading image in ImageEditor

Image can be loaded in the following two ways:

  • Using image source
  • Using stream

You can load the ImageSource as demonstrated in the following code snippet.

<editor:SfImageEditor x:Name="editor" ImageSource="Assets/Buldingimage.jpeg">
BitmapImage image = new BitmapImage();
   image.UriSource = new Uri(@"Assets/Buldingimage.jpeg", UriKind.Relative);
   editor.ImageSource = image;

You can load the image as stream using the Image property as in the following code snippet.

  • C#
  • OpenFileDialog openFileDialog = new OpenFileDialog();
                openFileDialog.Filter = "Image Files(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.* ";
                if (openFileDialog.ShowDialog() == true)
                    var stream = openFileDialog.OpenFile();
                    editor.Image = stream;



    Image editor control supports various built-in themes. Refer to the below links to apply themes for the Image editor control,

    Setting theme to WPF ImageEditor

    See also

    How to retrieve a edited image as a stream in an image editor