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

Custom Tool with square selection

1 Answer 59 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Luca
Top achievements
Rank 1
Luca asked on 12 Oct 2013, 08:23 AM
Hi, 

I need to implement a custom tool that is very similar to the crop tool in the user experience. I mean the user has to activate the tool, draw a square across the image, resize and move if necessary and then trigger a custom functionality instead of cropping. 

Is it possibile to perform it by overriding the crop tool or it needs to create a new ITool from the scratch? How can I implement that two steps process (Selection/adjustment then action) whithin a custom tool? How can I manage to draw the square like in the crop tool?

Thank you very much for your responses

My warmest regards

Luca 

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 16 Oct 2013, 02:23 PM
Hello Luca,

Thank you for contacting us!

In the particular case I'd suggest you implement your custom tool based on the default Crop tool. Please find attached a sample project demonstrating how a custom tool can be created. The classes in the project contain the default implementation of the CropTool-related classes, but their names are changed. Additionally, the sample is for Silverlight, but the code base of the WPF and Silverlight controls is the same, so you should be able to port the application easily.

I hope this is helpful! Do not hesitate to get back to us should you have any additional question.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ImageEditor
Asked by
Luca
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or