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.

How to update the color, stroke thickness for selected shape Programmatically?

SfImageEditor allows you to update the Color, StrokeThickness for selected shape programmatically.

 

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: On selecting a shape, ItemSelected event will be triggered. From this, you can get settings of selected shape as like below,

 

 

 

Step 3: Please refer the following code snippet to change the Color, StrokeWidth for selected shape and FontFamily for selected text.

 

 To update Color for selected shape as like below,

 

To update StrokeWidth for selected shape as like below,

 

To update Color for selected text as like below,

 

To update FontFamily for selected text as like below,

 

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/general/ze/ImageEditor_Sample-708923305.zip

 

Screenshots:

The updated Color and StrokeWidth for selected shape screenshots are shown below, 

                   

The updated Color and FontFamily for selected text screenshots are shown below,  

 

 

            

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

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.