Open ImageEditor cropped without image

Hello,

I am trying to open the ImageEditor without an existing image, forcing the user to work within a cropped space, say 6x1.

I can get it working using the suggestions on this forum by loading an existing image and then:
editor.ImageLoaded += (sender, args) => 
{
   editor.ToggleCropping(12, 7);
};

But I want to give the user the option to create a new image within a pre-defined space.

Thanks.
Alan

1 Reply

HM Hemalatha Marikumar Syncfusion Team November 17, 2020 04:00 PM UTC

Hi Alan Hoiland,  
  
Greetings from Syncfusion.   
  
This update is mainly to get the confirmation of your requirement in detail to proceed this further and provide a better solution without misleading.  
  
We have validated your query and please confirm whether your requirement is to get crop rectangle view at initial without having the image in the ImageEditor and then dynamically load the image, to view the image with crop view or else crop the white canvas initially (since without image shows only the white canvas) and then load the image within the cropped region alone.   
 
Regards,
Hemalatha M. 
 


Loader.
Up arrow icon