This is a migrated thread and some comments may be shown as answers.

Custom size for Crop rectangle in Crop tool

1 Answer 78 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pankaj
Top achievements
Rank 1
Pankaj asked on 01 Oct 2013, 05:46 AM
Hi,
     Is it possible to set custom size for crop rectangle? i.e. Can I have 2.5cm x 3.5cm Crop rectangle which I can use to crop portion of image?
How will be size normalized w.r.t. original size image as preview image size is much smaller than original image? Can you give me code snippet for same?
Regards
Pankaj

1 Answer, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 03 Oct 2013, 12:22 PM
Hi Pankaj,

Since you have opened a support ticket regarding the same topic, I am going to paste my answer here for the others and will continue our communication in your dedicated support thread:

 
You can use the CropRect property exposed by CropTool and define your custom crop size. The CropRect property accepts Rect values which have their coordinates in normalized form. That said, they can be values from 0 to 1.


Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
ImageEditor
Asked by
Pankaj
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or