I am trying to resize an image on Saving;
I have the sfImagEditor defined in the view like this :
<ContentPage.Content x:DataType="local:CameraViewModel">
<imageEditor:SfImageEditor
x:Name="Editor"
ImageSaving="SfImageEditor_ImageSaving"
Source="{Binding Picture}" />
</ContentPage.Content>
in the code behind I have this :
private void SfImageEditor_ImageSaving(object sender, Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
{
var photo = ImageSource.FromStream(() => args.Stream);
string photoAsString = _photoService.ToBase64String(photo);
MessagingCenter.Send<CameraEditView, string>(this, "NewImage", photoAsString);
args.Cancel = true;
_navigationService.GoBackAsync();
}
I see that one can pass size parameters on the Save method :
How do I do this when the save method is called from the save button in the sfImage.Editor control