We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to override original image with edited image in Xamarin forms

By default, In SfImageEditor when we save image, the image will be getting saved in gallery. We can also able to override the existing image with edited image.

 

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.

https://help.syncfusion.com/xamarin/sfimageeditor/getting-started

 

Step 2: To override the existing image with edited image in all the xamarin platforms. For this, you need to implement a DependencyService which is implemented across all the platform specific projects.

For adding the DependencyService, first you need to add an interface in the PCL project as in the below code snippet:

 

Now, you have to implement and register the DependencyService in the assembly based on platform specific. This can be done as follows:

 

Android

 

 

UWP

 

 

iOS

 

In forms iOS we get the image path as a local identifier like "570C1598-6EBC-40CC-833E-50478E70FD7C".

 

Due to privacy level in iOS, it is not possible to override or modify the existing images.

 

Step 3: Call the following DependencyService  method to override the existing image with edited image.

 

 

Sample link:

http://www.syncfusion.com/downloads/support/directtrac/general/ze/ImageEditor_GetttingStarted717073453.zip                       

Article ID: Published Date: Last Revised Date: Platform: Control:
8910 07/05/2018 07/06/2018 Xamarin.Forms SfImageEditor
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon