Hi,
After saving image is not cropped.
In ImageLoaded event I've added crop to image editor control, selection of crop is showing correctly. I can resize and move selection.
void SfImageEditor_ImageLoaded(System.Object sender, EventArgs args)
{
var editor = sender as SfImageEditor;
editor.Crop(ImageCropType.Circle);
}
But after saving image have original size. Other editing (for example adding circle shape) is added to image correctly.
void SfImageEditor_ImageSaving(System.Object sender, ImageSavingEventArgs args)
{
args.Cancel = true;
try
{
var result = args.ImageStream;
var viewModel = BindingContext as SettingsPageViewModel;
if (viewModel != null)
{
viewModel.SaveCroppedPhoto(result);
}
}
catch (Exception ex)
{
Sentry.SentrySdk.CaptureException(ex);
System.Diagnostics.Debug.WriteLine(ex.ToString());
}
}