How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Image Access and Modify
Geometry: Flip
Geometry: Flip
Home ›› XImage.Raster ›› C# Raster: Flip Image

How to C#: Flip Image

Guide for How to Flip Image

Related .net document control helps: dicom document viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC powerpoint viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C# dicom document viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET

Steps to Flip image

Load an image with RasterImage object.

Create an image processor with ImageProcess object.

Call the method FlipImage of ImageProcess object to complete the task croping image.

Save the fliped image to an image file on the disk.

In order to finish the work, please refer to the following steps.

Install XImage.Raster in C# Project

Add necessary references to your C#.NET project. Right-click the project and select "Add Reference..." to locate and add the following DLLs as project references;




Use corresponding namespaces;

  using RasterEdge.XImage.Raster;

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.

How to Flip Image with C#.NET

By using the XImage.Raster SDK, you can flip the current image vertically.

Sample Code (flip current image):

RasterImage img = new RasterImage(@"C:\input.tif");
ImageProcess process = new ImageProcess(img);
//Vertically flips the image. 
//If the image has multiple frames,
//it will just flip the second page of the input tif