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

Change crop rectangle

2 Answers 67 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Alexander Jiménez
Top achievements
Rank 1
Alexander Jiménez asked on 24 Jun 2015, 10:49 PM

Hi guys,

Can I change the crop rectangle for another shaped, like a circle or oval?

 Thanks.

 

Alex.

2 Answers, 1 is accepted

Sort by
0
Accepted
Petya
Telerik team
answered on 29 Jun 2015, 01:14 PM
Hello Alex,

Such customization option is not available with the CropTool. However, you could implement a custom tool that will fit this scenario. For your reference, I've extracted the code of the default tool in a demo project showing how you can go about the task of creating a custom tool. Note that you'd need to change the way the adorner looks and behaves and the Execute method of the command as right now it returns a bitmap with a rectangular shape.

I hope this is helpful.

Regards,
Petya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Alexander Jiménez
Top achievements
Rank 1
answered on 29 Jun 2015, 10:35 PM

 Thanks Petya,

 I see that is possible but not easy, at least for me. Anyway I'll try.

 Regards,

 Alex.

Tags
ImageEditor
Asked by
Alexander Jiménez
Top achievements
Rank 1
Answers by
Petya
Telerik team
Alexander Jiménez
Top achievements
Rank 1
Share this question
or