We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to fill the width of the SfImageEditor.

Thread ID:

Created:

Updated:

Platform:

Replies:

144302 Apr 29,2019 10:43 PM UTC Apr 30,2019 01:47 PM UTC Xamarin.Forms 1
loading
Tags: SfImageEditor
Will Autio
Asked On April 29, 2019 10:43 PM UTC

When we read in a photo taken in portrait, we would like to fill the width right to the available edge. Currently we get a broad stripe of white space on the sides and less at the top and bottom. (see the Image: Initial Load.png). What we would like to see on initial load, is in the other photo (After Zoom to width of device.png), where the width is fully used and the top and bottom of the photo extend past the available space. I achieved this by manually zooming until the width was at the edge of the device.
Is there a setting that would help me achieve this (like Aspect="Fill")? If not, how do I do it programmatically?
Thanks!


Attachment: ScreenCapForSF_427581c8.zip

Bharathiraja K [Syncfusion]
Replied On April 30, 2019 01:47 PM UTC

Hi Will, 
 
Greetings from Syncfusion. 
 
We don’t have the option to set the Aspect=”Fill” to the image in ImageEditor. By default, we have loaded the image with the aspect ratio as “AspectFit” in the image editor. If we set the Aspect = “Fill” to the image, there may be a chance to lose the image quality when zooming or cropping the image. So that, we have followed the common editor tool behavior to load the image with the ratio as AspectFit. 
 
Regards, 
Bharathi. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon