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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can we set default cropping in image editor?

Platform: Xamarin.Forms |
Control: SfImageEditor |
Published Date: September 26, 2018 |
Last Revised Date: September 26, 2018

 

SfImageEditor allows you to set default cropping in toolbar menu.

 

Step 1: Create SfImageEditor sample with all necessary assemblies.

 

Please refer the below link to create a simple SfImageEditor sample along with the ways to configure it.

https://help.syncfusion.com/xamarin/sfimageeditor/getting-started

 

Step 2: The list of cropping items are free, original, square, 3:1, 3:2, 4:3, 5:4, 16:9 in ImageEditor. You can set any crop item as default cropping. In SetToolbarItemVisibility method, disable the remaining items as false.

 

In the below code snippet, we have set 3:1 as default cropping in ImageEditor and disabled remaining items except 3:1.

 

C#

 

 

 

Screen Shot:

 

 

 

 

Sample link:

 

http://www.syncfusion.com/downloads/support/directtrac/general/ze/ImageEditor_GettingStarted-588940704.zip

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Daniele
Jan 25, 2019

Hi,

it could be possible to make not resizable the rectagle to crop the image?


Thanks

Daniele

Reply
Daniele
Jan 28, 2019

And is it also possible to set the circle as default instead of the rectangle?

thanks

Daniele


Please sign in to access our KB

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

Up arrow icon

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