Guide for C#
Core Document Formats
Additional Features
Image Flipping

C# Imaging - Flip Image in C#.NET

Use Free C# Codes to Flip Image in Visual C#.NET Application

Visual C#
Home > .NET Imaging SDK > C# > Flip Image
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

Flip Image Overview in C#
Based on RasterEdge DocImage SDK for .NET image processing core DLL and technique, this C# image flipping tool supports users flipping image in both vertical and horizontal directions with following two methods. Besides, these image flipping APIs can be flexibly used to develop users own individual image processing functions in .NET applications.
  • ApplyFlip: Used to flip images horizontally in C# projects
  • ApplyFlipV: Used to flip images vertically in C# applications
On this page, we will discuss following main information of image flipping function in C#:
  • Significant image manipulating applications within C# Windows project
  • Overview of C# image flipping benefits and technologies
  • How to start a correct C# Windows application for flipping image
  • Specific method on how to flip image in C# project
  • C# sample codes to help users filp image in C# project
Additionally, our C# image processing tools provide products and technologies for other image editing functions in .NET applications within Enterprise Content Management systems. List below shows some main image processing functions like image resizing, cropping, scaling, color correction, noise reduction, smoothing, and more.
C# Image Flipping Function Benefits and Technologies
  • Add high performance image flipping function to your C# applications
  • Full programmed solutions on image flipping at vertical and horizontal orientations in C# project
  • Support all image colorspaces: RGB, Gray, CMYK, ICCBased, Lab, Indexed, and Separation
  • C# image saving tools for storing flipped image to named local file
  • Print flipped image using the DocImage Printing components or by rendering onto a printer graphics object in C# class
  • Compatible with Visual Studio 2005, Visual Studio 2008 & Visual Studio 2010
  • Support Windows XP, Windows 2003 Server, Windows 2008 Server and more
  • Support 32 and 64 bit C# image processing binaries
  • Runtime royalty free desktop licensing for this mature C#.NET image flipping library
Flip Image in C# Windows Program Guide
In this section, users are shown to create a C# project in Visual Studio firstly. Later, add .NET imaging SDK into the created project and use the provided C# demo code to flip image horizontally and vertically. If you are finding tutorials on image managing functions in VB.NET, please go to VB.NET class to process image, and for .NET Windows and web image flipping guide, please go to image flipping in .NET Windows Forms and image flipping in ASP.NET Web Form.
  1. Run Microsoft Visual Studio 2005/2008/2010;
  2. Create a Visual C#.NET demo project;
  3. Activate C# image project license and copy created "RasterEdgeLicense.txt" to the new project folder, together with .NET Imaging SDK DLLs;
  4. Add .NET Imaging references to the created Visual C#.NET project;
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.Processing.dll
  5. Apply following C# image flipping and processing using statements:
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.Basic.Codec;
Methods to Flip Image in C#
With methods of "ApplyFlip" & "ApplyFlipV", users can flip image horizontally and vertically in C# project or you can work out some customized image flipping applications by using following two APIs.
public static int ApplyFlip(REImage img);
public static int ApplyFlipV(REImage img);
C# Demo Code on Flipping Image
The following C# class codes are used to flip your image in horizontal and vertical directions respectively.

Flip Image Horizontally with C# Code

Users can apply image processing toolkit to C# project to flip image horizontally with following sample function code.
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.Basic.Codec;

namespace RE__Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyFlip(reImage);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
}
}
}

Flip Image Vertically with C# Code

Besides flipping image in horizontal direction, flipping image in vertical way is also allowed via our C# image manipulating library.
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.Basic.Codec;

namespace RE__Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyFlipV(reImage);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
}
}
}


Recommend this to Google+