Hi I'm having a bit of trouble saving an edited image,
Saved Pressing the save button and adding an ImageSaving handler
I am trying to process the Image Stream and return the byte[] to a previous page,
However when I access the stream it is empty
I have included snippets of code below and advice or suggestions would be greatly appreciated
SfImageEditor editor;
public SfImageEditorPage()
{
editor = new SfImageEditor();
Title = "Edit Image";
editor.ImageSaving += Editor_ImageSaving;
Content = editor;
}
private void Editor_ImageSaving(object sender, ImageSavingEventArgs args)
{
MemoryStream mStream = new MemoryStream();
args.Stream.CopyTo(mStream);
byte[] data = mStream.ToArray();
}
Regards,
Shane