Open JoacimWall opened 5 years ago
Hi If i use CircleTransformation then it works with ZoomFator. One other issue is that the hole picture is not visible inside the crop canvas. We try to crop image with HeightRequest 180 and WidthRequest 370. if i use standard picture taken with Iphone 8 an portrait then i am not able to select left or rigt side of the picture.
When i use the ImageCropControl and zoom. The image is saved without zoom.
Viewmodel:Code
var model = modelIn as ImageCropModel; HeightRequest = model.HeightRequest; WidthRequest = model.WidthRequest; CompletionMessage = model.CompletionMessage; CancelMessage = model.CancelMessage; if (model.IsCircle) { PreviewTransformations = new List() { new CircleTransformation() };
}
else
{
xaml:Code
CodeBehind on save var result = await cropView.GetImageAsJpegAsync(); byte[] bytes = null;
And i see in your function GetImageAsJpegAsync() that the zoomFactor is set for example 1.7.
One other question is that there is some sort of padding 10% orund the border is not showing in the preview but is there on export of the picture.
Regards Joacim