RadImageEditor code behind

2 posts, 0 answers
  1. Zawer
    Zawer avatar
    2 posts
    Member since:
    May 2007

    Posted 15 Jul 2011 Link to this post

    Hi,

    First, congratulations on the new great RadImageEditor.

    Here are my questions:
    1. How to invoke command such as Crop from code-behind. (I want to start crop immediately after capturing an image.)
    2. Can I change the Crop behavior, I want the user to start Cropping by Click and Drag the mouse and End cropping by Double clicking on the image.

    Thanks in advance


  2. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 18 Jul 2011 Link to this post

    Hi Zawer,

    We are currently working on the RadImageEditor help and will try to get it out as soon as possible. However, until it is ready, here are some answers to your questions:
    - There are two types of actions concerning RadImageEditor - commands and tools. Commands are the ones that are executed immediately (e.g. Rotate, Invert Colors). Crop is of the second kind, a tool, as it has settings and real-time preview. Tools are executed in the following manner:
    imageEditor.ExecuteTool(new CropTool());
    - You can implement any behavior you want using the RadImageEditor API. You can invoke the cropping tool as I have shown you above. To end the crop tool you can use either the CommitTool method or the CancelExecuteTool depending on your needs.
    Let us know if you need additional assistance.

    Kind regards,
    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. DevCraft banner
Back to Top