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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Save Stroke Thickness and Color Settings

Thread ID:





146317 Jul 31,2019 06:23 AM UTC Aug 2,2019 12:26 PM UTC UWP 3
Tags: SfImageEditor
Frank Effenberger
Asked On July 31, 2019 06:23 AM UTC


is there a way to save the stroke thickness and the color of the pen when closing the editor? I would like to start the editor with the last selected settings.

Thank You in advance

Muneesh Kumar G [Syncfusion]
Replied On July 31, 2019 09:43 AM UTC

Hi Frank, 
Greetings from Syncfusion.  
We have analyzed your requirement and you can achieve this by using serialization and deserialization method. In Serialization, you can save the current settings of the SfImageEditor. Then again load the previously stored settings by using deserialization method. 
Please check below user documentation for more details about that.  
Muneesh Kumar G.    

Frank Effenberger
Replied On August 2, 2019 06:45 AM UTC

Thank you for your consideration.

In Serialization, the editor stores all drawings and shapes I created on my picture. But I only want to store the drawing settings (stroke thickness and the color) for editing the next picture. Not the drawings and created shapes.

Muneesh Kumar G [Syncfusion]
Replied On August 2, 2019 12:26 PM UTC

Hi Frank,  
Currently there is no direct support to save the drawing Settings of previously used editor control using Serialization method. But we can save the drawing settings of old editor JSON string in a database or text file and load again and can set in the new editor control settings. 
ImageEditor.AddShape(Syncfusion.SfImageEditor.XForms.ShapeType.Path, new Syncfusion.SfImageEditor.XForms.PenSettings() {StrokeWidth=10,Color=Color.Black }); 
Please let us know if you have any other queries.  
Muneesh Kumar G.    


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon