Guide for C#
Core Document Formats
Additional Features

C# Imaging - Image Basic Transformation in C#.NET

C# Class on Image Basic Transformation of Image Processing DLL Control

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

C# Image Processing Basic Functions Overview
RasterEdge DocImage SDK for .NET provides advanced and flexible imaging transformation functions to crop, rotate, resize, and flip document & image on your applications, including:
Related .net document control helps:
c# asp.net word document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
c# asp.net mvc document viewer: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net mvc excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net 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...
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
  • Flip Canvas vertical using Visual C# code
  • Flip Canvas horizontal using Visual C# code
  • Rotate Canvas to clockwise 90 degrees with C# class
  • Rotate Canvas to counter-clockwise 90 degrees with C# class
  • Rotate Canvas to any angle clockwise arbitrarily with C# class
  • Resize image as you wish in C# project
  • Crop image at designed size in C# project
how to redact a pdf in c#, vb.net itextsharp pdfreader, create pdf file from memorystream in c#, itextsharp remove text from pdf c#, how to add image in pdf header using itext c#, sharepoint 2013 convert word to pdf c#, add watermark to pdf vb.net.
In following text, we will list the step by step C# guide on how to use flipping, rotating, resizing and cropping basic image transformation functions with .NET Imaging Processing DLL. c# convert image to pdf, c# code to save excel file as pdf, convert pdf to image vb.net free, c# compress pdf size, c# convert pdf to jpg, convert tiff to pdf c# itextsharp.
Feature List of Image Basic Processing Functions in C#
  • Develop based on the core technique of .NET Imaging SDK libraries
  • Use C# to resize multi-type images, like bitional, grayscale, monochrome, etc.
  • Easy to decide the image cropping area with the application of X / Y location
  • Use ApplyFlip and ApplyFlipV methods to flip image in C# sample code
  • High-compatibility image rotation solutions in C#.NET class application
  • A broad range of storage methods for the transformed image file in C#
  • 100% managed functions can be applied to Visual Studio 2005 + & .NET 2.0 +
C# .NET Application for Image Basic Transformation
We intend to show the brief guide on creating and running a C# Windows project to apply image cropping, rotating, resizing & flipping functions using Visual C# sample class within the mature image processing dll component of our .NET Imaging SDK. If you are VB.NET class developers and end users, please go to basic image edition and processing applications in VB.NET programming language.
  1. Open Microsoft Visual Studio 2005, 2008 or 2010 version;
  2. Begin a new Windows project with programming language - C#.NET;
  3. Integrate following .NET Imaging DLLs within your Visual C# application;
    • RasterEdge .Imaging.Basic.dll
    • RasterEdge .Imaging.Processing.dll
  4. Add and run following appropriate namespace for image basic transformation in the C# project:
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.Basic.Codec;

If you want to see the tutorials of image management in web ASP.NET and Windows Forms platforms, please link each page directly: integrate advanced image processing and clean-up capabilities into .NET Windows Forms and image processing & manipulating for web document.
Methods for Image Basic Transformation in C#
Following methods on image basic transformation functions enable users to resize, crop, flip and rotate any image and document page. Within this image editing APIs, users have the abilities to adjust image to designed width & height, get a well cropped canvas, flip image vertical and horizontal direction and rotate image in any degree.
public static int ApplyResize(REImage img, int width, int height);
public static int ApplyCrop(REImage img, int x, int y, int width, int height);
public static int ApplyRotate(REImage img, int deg);
public static int ApplyFlip(REImage img);
public static int ApplyFlipV(REImage img);
C# Code on Image Resizing, Cropping, Flipping & Rotating
C# code below shows how to finish the above mentioned basic image processing operation with the complaint methods.
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Basic.Codec;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.Basic;

namespace WindowsApplication1
{
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.ApplyResize(reImage, 500, 500);

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

}
}
}
//public static void CropImageDemo()
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyCrop(reImage, 80, 80, 500, 500);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
}
//public static void RotateImageDemo()
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyRotate(reImage, 50);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
}
//public static void FilpImageHorizontallyDemo()
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyFlip(reImage);

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

//public static void FilpImageVerticallyDemo()
{
string fileName = "c:/Sample.png";

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyFlipV(reImage);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
}
RasterEdge .NET Imaging SDK provides dozens of image processing functions in several categories including document processing & cleanup, medical image enhancement, color conversion and correction, noise reduction, image information detection, and more. Developers and end users can build variable .NET applications (including C#.NET, VB.NET, web ASP.NET and .NET Windows Forms) to handle these imaging editing functions. As for the overall image processing operations in C# project, please have a look at: benefits and features on image processing and manipulation in C# class.
More Tutorials!


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2024 Raster Edge.com