How to C#: Tiff
Using Tiff SDK for C#.NET
Rotate a Tiff Page
Rotate a Tiff Page
Home ›› XDoc.Tiff ›› C# Tiff: Rotate Tiff Page

C# TIFF - Rotate TIFF File Page in C#.NET

How to Rotate TIFF File Page in C#.NET Imaging Application

C#.NET TIFF Rotating Overview

Our .NET Tiff Imaging Toolkit supports Tiff page's rotation in C# programming application. In general, you are able to rotate any page of Tiff document to 90, 180, and 270 degrees in clockwise. Apart from simple rotation feature, RasterEdge XDoc.Tiff for .NET still allows C# users to process and edit rotated Tiff page, like sorting and saving the rotated Tiff page in C#.NET application. RasterEdge .NET Tiff image library also supports other Tiff document page editing functions, such as Tiff page inserting, sorting, deleting, extracting and so on.

Related .net document control helps: pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm... edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET office document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...

Rotate TIFF Page Using Sample C# Code

Add references;









Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.TIFF;

Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:

If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.

If using x86, the platform target should be x86.

Using sample Visual C# code below, you can get the first page of loaded Tiff document and rotate it to 90 degrees in clockwise.

// Load a Tiff file.
            TIFFDocument doc = new TIFFDocument(@"C:\demo1.tif");
            if (null == doc)
                throw new Exception("Fail to load the file !");

            // Obtain the first page of Tiff file and rotate it to 90 degrees in clockwise.
            TIFFPage page = (TIFFPage)doc.GetPage(0);

public void Rotate(RotateOder order)

Rotate page 90 degree or flip the page.