Visual C#.NET: Rotate Images

How to rotate images using C#.NET
Yiigo.Image for .NET provides advanced image rotating support, allowing developers to load and open document & images in different format or in bitonal, color and grayscale. Find more image rotating information on Yiigo.Image for .NET Process Support.
Yiigo.Image for .NET Image Processing SDK has those following functionalities:
This document provides comprehensive Visual C#.NET samples for guiding developers to rotate images using Yiigo.Image for .NET. Find more image rotating tutorials on Rotate Images in VB.NET, Web Imaging Viewer Image Rotating and Rotate Images in .NET Winforms.
Rotate Images with C#.NET Sample Code

Requirements

Before rotating images using Yiigo.Image for .NET in Visual C#.NET, make sure that you have installed.
  • Operating systems - Windows 7, Windows Vista, and Windows XP, etc
  • Compatible with .NET framework 2.0 and above versions
  • Support Visual Studio 2005, 2010 and other .NET development environments
  • Yiigo.Image for .NET installation

Start to Rotate Images

  • Open and run your Microsoft Visual Studio;
  • Choose either "Visual C# Projects" in "New Project" dialog box;
  • Choose "Windows Application" in the "Templates" List and name it "YiigoImageRotateCsharp";
  • Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
  • In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library;
  • Add it to your Visual C# applications;
  • Call Yiigo .NET Image Namespace & Copy those following codes:
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");
Products
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner