Keep aspect ratio in crop tool

4 posts, 0 answers
  1. Gilberto
    Gilberto avatar
    65 posts
    Member since:
    Sep 2006

    Posted 20 Jul 2011 Link to this post

    Hello,

    I was wondering how can i have the checkbox "keep aspect ratio" in crop tool.

    There is one easy way to do that?

    By the way i couldn't find the documentation about this control.


    Gilberto

  2. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts
    Member since:
    Sep 2012

    Posted 21 Jul 2011 Link to this post

    Hi Gilberto,

    Currently, the crop tool doesn't support the "keep aspect ratio" option out of the box. We will add it to our to-do list, but I can not give you a time frame.
    If this is an important feature to you, the source code is available along with the rest of the controls. In it, you can see how the crop tool is implemented and make your own custom one by implementing the ITool interface.
    As for the documentation - we are currently working to make it available as soon as possible. Until that is done, however, you can take a look at one of our latest blog posts.
    We'll be glad to answer any questions.

    Best wishes,
    Ivailo
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. Gilberto
    Gilberto avatar
    65 posts
    Member since:
    Sep 2006

    Posted 20 Jul 2012 Link to this post

    Hello,

    Does anyone implements that feature?

    Keep aspect radio in crop tool of image editor.

    I was wondering if i can esily set the start size of the initial crop tool.

    Best Regards

  4. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts
    Member since:
    Sep 2012

    Posted 24 Jul 2012 Link to this post

    Hi Gilberto,

    We have not changed the way the CropTool works. However, as Ivailo has mentioned, you can implement your own custom crop tool following the example of the default one.

    There is a sample demo for Silverlight in this forum post. You can copy the classes and use them with little to no changes in a WPF project. After that, you could proceed to adjust the work of the custom tool and adorner to match your requirements.

    I hope this helps.

    Regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top