Custom size for Crop rectangle in Crop tool

2 posts, 1 answers
  1. Pankaj
    Pankaj avatar
    4 posts
    Member since:
    Feb 2013

    Posted 01 Oct 2013 Link to this post

    Hi,
         Is it possible to set custom size for crop rectangle? i.e. Can I have 2.5cm x 3.5cm Crop rectangle which I can use to crop portion of image?
    How will be size normalized w.r.t. original size image as preview image size is much smaller than original image? Can you give me code snippet for same?
    Regards
    Pankaj
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 03 Oct 2013 Link to this post

    Hi Pankaj,

    Since you have opened a support ticket regarding the same topic, I am going to paste my answer here for the others and will continue our communication in your dedicated support thread:

     
    You can use the CropRect property exposed by CropTool and define your custom crop size. The CropRect property accepts Rect values which have their coordinates in normalized form. That said, they can be values from 0 to 1.


    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top