Crop Tool with no constraints

Thread is closed for posting
3 posts, 1 answers
  1. Victor
    Victor avatar
    25 posts
    Member since:
    May 2014

    Posted 26 Sep 2014 Link to this post

    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,
  2. Answer
    Ivaylo Gergov
    Ivaylo Gergov avatar
    691 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:CropTool CropRect="0.25,0.25,0.5,0.5" >
            <telerik:CropToolRatio CanResize="True" />

    Let me know if this helps.

    Ivaylo Gergov

    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. Victor
    Victor avatar
    25 posts
    Member since:
    May 2014

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

Back to Top