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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load SVG images in ImageEditor?

SfImageEditor allows you to load SVG image as annotation on image.

 

Step 1: Create image editor 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 load SVG 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

 

iOS

 

UWP

 

Step 3: Get the custom view from DependencyService method call and add this view in AddCustomView method.

 

 

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/general/ze/ImageEditor_LoadSVGImage-124290280575036211.zip

Screen Shot:

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8881 06/27/2018 06/29/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