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

Rotate inserted image

4 Answers 180 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 19 Jun 2013, 06:37 AM
Hi,

In my application I have the requirement that users can rotate an inserted image. Can I achieve this functionality with the RadImageEditor? If yes, can you give me some hint how to implement this function?

Thank you

4 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 21 Jun 2013, 12:49 PM
Hello Stefan,

Thank you for your question.

The ImageEditor has a built-in tool which allows the users to rotate an inserted image. You can refer to the Rotate Image demo exhibiting this functionality on our demos website. Also, the following article in the control's documentation specifies the exact tools responsible for it: Rotate, RotateRight, and RotateLeft: ImageEditor's tools.

I hope that you will find the provided information helpful.

Regards,
Ivaylo
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Stefan
Top achievements
Rank 1
answered on 24 Jun 2013, 09:11 AM
Hello Ivaylo,

Thank you for the response but I think you misunderstood my question.
I'm thinking of the image that the user has inserted to the already available image in the editor.

Example:
User inserts an image via the InsertImage command, there he can specify the x/y coordinates and the size of the image in the predefined dialog. Is it possible that he can rotate the image to insert in the editor (not the whole image in the ImageEditor, just the inserted one)?

Thank you & Regards
0
Ivaylo
Telerik team
answered on 26 Jun 2013, 01:37 PM
Hello Stefan,

Thank you for the provided clarifications.

I am afraid that, currently, we have not implemented and do not support any methods that would expose the desired functionality, neither in the UI, nor in the code. Thus, I cannot provide any possible suggestions on how to achieve it.

Should you have any other questions, do not hesitate to contact us.

Regards,
Ivaylo
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Arron
Top achievements
Rank 1
answered on 21 Aug 2013, 09:46 AM
The telerik works well on ratating images, and I also want to share some code I used to rotate the inserted images:
using System.IO;
using System.Drawing.Printing;
using Yiigo.Imaging;
using Yiigo.Imaging.Processing;
 
// Rotate image to 90 degrees
using YiigoImage Image = new YiigoImage();
{
string ImageID = (@"C:\ yiigo_example.jpg");
RotateAngle Rotation = RotateAngle.90;
}
Image. YiigoImageProcessRotate(@"C:\ yiigo_example.jpg", RotateAngle.90);
Image.save(@"C:\ yiigo_example.jpg");
 
// Rotate image to 180 degrees
using YiigoImage Image = new YiigoImage();
{
string ImageID = (@"C:\ yiigo_example.jpg");
RotateAngle Rotation = RotateAngle.180; 
}
Image. YiigoImageProcessRotate(@"C:\ yiigo_example.jpg", RotateAngle.180);
Image.save(@"C:\ yiigo_example.jpg");
 
// Rotate image to 270 degrees
using YiigoImage Image = new YiigoImage();
{
string ImageID = (@"C:\ yiigo_example.jpg");
RotateAngle Rotation = RotateAngle.270;
}
Image. YiigoImageProcessRotate(@"C:\ yiigo_example.jpg", RotateAngle.270);
Image.save(@"C:\ yiigo_example.jpg");
I hope it helps. Or you can choose some other image processing SDKs to help you rotate the inserted images. Good luck.



Best regards,
Arron
Tags
ImageEditor
Asked by
Stefan
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Stefan
Top achievements
Rank 1
Arron
Top achievements
Rank 1
Share this question
or