Rotate inserted image

5 posts, 0 answers
  1. Stefan
    Stefan avatar
    3 posts
    Member since:
    Sep 2011

    Posted 19 Jun 2013 Link to this post

    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
  2. Ivaylo
    Admin
    Ivaylo avatar
    37 posts

    Posted 21 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stefan
    Stefan avatar
    3 posts
    Member since:
    Sep 2011

    Posted 24 Jun 2013 Link to this post

    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
  5. Ivaylo
    Admin
    Ivaylo avatar
    37 posts

    Posted 26 Jun 2013 Link to this post

    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.
  6. Arron
    Arron avatar
    22 posts
    Member since:
    Apr 2013

    Posted 21 Aug 2013 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017