The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
MKMuneesh Kumar G Syncfusion Team July 31, 2019 04:43 AM
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.
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.
MKMuneesh Kumar G Syncfusion Team August 2, 2019 07:26 AM
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.
[C#]:
ImageEditor.AddShape(Syncfusion.SfImageEditor.XForms.ShapeType.Path, new Syncfusion.SfImageEditor.XForms.PenSettings() {StrokeWidth=10,Color=Color.Black });