XImage.Raster
Features
Tech Specs
How-to C#
Pricing

C# Imaging Library
How to C#: Rotate Image according to Specified angle


Tutorial for How to Rotate Image



How to rotate image using C#?

  1. Download XImage.Raster C# imaging library
  2. Install C# library to rotate image in .NET applications
  3. Step by Step Tutorial












Steps to Rotate image



  • Load an image with RasterImage object.
  • Create an image processor with ImageProcess object.
  • Call the method RotateImage of ImageProcess object to complete the task rotating image.
  • Save the rotated image to an image file on the disk.


How to Rotate Image



By using the XImage.Raster SDK, you can rotate the image according to the specified angle.

The C# source code below will rotate the source image with 30 degrees.

RasterImage img = new RasterImage("C://input//raster-arrow-down.png");
ImageProcess processor = new ImageProcess(img);
processor.RotateImage(30);
img.Save("C://output//raster-image-rotate.png");


Compare the source image and image rotated

Source image Image rotated