This is a migrated thread and some comments may be shown as answers.

RadImageEditor code behind

1 Answer 168 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Zawer
Top achievements
Rank 1
Zawer asked on 15 Jul 2011, 07:19 PM
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


1 Answer, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 18 Jul 2011, 02:09 PM
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!

Tags
ImageEditor
Asked by
Zawer
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or