How to Rotate Image

Can u please help me on rotating images(jpeg file).I am unable to find any solution.

Hi Atif,

Thank you for considering Aspose products, and welcome to the Aspose.Imaging support forum.

Aspose.Imaging has made the required operation very simple. Once you have loaded an image using the Image.Load method, all you have to do is to call the Image.RotateFlip method by passing the appropriate value from RotateFlipType enumeration as argument to Image.RotateFlip method. Please check the below provided code snippet,

C#


using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(myDir + “sample.jpg”))
{
image.RotateFlip(Aspose.Imaging.RotateFlipType.Rotate270FlipNone);
image.Save(myDir + “rotatefilp270.jpg”);
}

Note: I have assumed that you are using .NET platform.

Please feel free to write back in case you have more questions.