Change crop rectangle

3 posts, 1 answers
  1. Alexander Jiménez
    Alexander Jiménez avatar
    4 posts
    Member since:
    Sep 2009

    Posted 24 Jun 2015 Link to this post

    Hi guys,

    Can I change the crop rectangle for another shaped, like a circle or oval?

     Thanks.

     

    Alex.

  2. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 29 Jun 2015 Link to this post

    Hello Alex,

    Such customization option is not available with the CropTool. However, you could implement a custom tool that will fit this scenario. For your reference, I've extracted the code of the default tool in a demo project showing how you can go about the task of creating a custom tool. Note that you'd need to change the way the adorner looks and behaves and the Execute method of the command as right now it returns a bitmap with a rectangular shape.

    I hope this is helpful.

    Regards,
    Petya
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Alexander Jiménez
    Alexander Jiménez avatar
    4 posts
    Member since:
    Sep 2009

    Posted 29 Jun 2015 in reply to Petya Link to this post

     Thanks Petya,

     I see that is possible but not easy, at least for me. Anyway I'll try.

     Regards,

     Alex.

Back to Top