Predefine rectangle in crop tool

3 posts, 1 answers
  1. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 28 Jul 2011 Link to this post


    just was playing around with the new image editor. i'm using a custom ui like the one in the demo (the one with the image of the baseball player) and i was wondering if there is a way to set the height and width of the cropping rectangle to a specific size.i want to force the user to crop his images to a predifend size or at least aspect ratio. similar to the way you assign contact images on a iphone.

    and one more question, how can a write the RadBitmap to a byte array for storing it in a DB?
    UPDATE: OK, forget about the DB thing, just found the

    best regards
  2. Answer
    Ivailo Karamanolev
    Ivailo Karamanolev avatar
    276 posts

    Posted 02 Aug 2011 Link to this post

    Hello Michael,

    Restricting the crop tool to an aspect ratio or a fixed size is currently not supported, however, you can implement your own tool, based on the current CropTool. The current implementation is available in the source code package along with the other controls.
    As for saving the image to the DB using PngFormatProvider is recommended instead of BmpFormatProvider as the former is also lossless, but results in much smaller images.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Mike
    Mike avatar
    39 posts
    Member since:
    May 2011

    Posted 03 Aug 2011 Link to this post

    OK, thanks!
Back to Top