Hi, when I
change a picture, the quality of the changed elements is very bad (see
picture - the red elements). The origin picture itself has a good quality. Is it possible to
increase the quality of the changed elements?
I save the
picture so:
editorFront.ImageSaving += EditorFront_ImageSaving;
editorFront.Save(".png",
editorFront.OriginalImageSize);
private void EditorFront_ImageSaving(object sender,
Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
{
args.Cancel = true; // Stop the image from saving to location
imageData =
GetImageStreamAsBytes(args.Stream);
editorFront.ImageSaving -=
EditorFront_ImageSaving;
}
private byte[]
GetImageStreamAsBytes(Stream input)
{
var buffer = new byte[16 * 1024];
using (MemoryStream ms = new MemoryStream())
{
int read;
while ((read =
input.Read(buffer, 0, buffer.Length)) > 0)
{
ms.Write(buffer, 0, read);
}
return ms.ToArray();
}
}
Thanks
Attachment:
Screenshot_from_20220301_110458_7d5a542b.zip