Crop Tool with no constraints

3 posts, 1 answers
  1. Victor
    Victor avatar
    25 posts
    Member since:
    May 2014

    Posted 26 Sep 2014 Link to this post

    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. Answer
    Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 01 Oct 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Victor
    Victor avatar
    25 posts
    Member since:
    May 2014

    Posted 10 Oct 2014 in reply to Ivaylo Gergov Link to this post

    Thanks!
Back to Top