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

Crop Tool with no constraints

2 Answers 85 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.
Victor
Top achievements
Rank 1
Victor asked on 26 Sep 2014, 01:13 PM
Hi,
As I understand I can add pre defined crop ratios (1:1, 4:3, etc) but what about the free(no constraint) cropping? If I add tool without height and width the editor shows me the default one that can be "free" but If I don`t change the crop area the editor return me rect with 0 values. Can I get this default values somewhere or maybe there is another way to add free ration crop?

Thanks in advance,
Victor

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivaylo Gergov
Telerik team
answered on 01 Oct 2014, 08:53 AM
Hello Victor,

Indeed if you do not change the crop area, the RadImageEditor returns a rect with 0 values. To avoid this you can set the default crop area through the CropTool.CropRect property.
Here's an example:

<telerik:RadImageEditor.Tools>
    <telerik:CropTool CropRect="0.25,0.25,0.5,0.5" >
        <telerik:CropToolRatio CanResize="True" />
    </telerik:CropTool>
</telerik:RadImageEditor.Tools>

Let me know if this helps.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Top achievements
Rank 1
answered on 10 Oct 2014, 07:28 AM
Thanks!
Tags
ImageEditor
Asked by
Victor
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Victor
Top achievements
Rank 1
Share this question
or