Guide for C#
Core Document Formats
Additional Features
Image Scaling

C# Imaging - Scale Image in C#.NET

Comprehensive Visual C# Codes for Scaling Image within .NET Imaging SDK

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

C# Image Scaling Function Overview
Using this C#.NET Imaging SDK, developers and end users can scale image proportionally using Visual C# code with the reliable and flexible image scaling solution APIs.
Related .net document control helps: dnn pdf editor: ASP.NET DNN PDF Editor Control: view, edit PDF files in Dotnetnuke application annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C# webforms document viewer: ASP.NET WebForms application document viewer control: view, annotate, redact, convert files online in ASP.NET sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint convert pdf: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET document viewer: ASP.NET Document Viewer Control in C#: View, Annotate, Redact web document files in ASP.NET using C# excel document viewer: ASP.NET Excel Document Viewer in C# Control: view office excel files online in ASP.NET web applications
This C# image processing tool provides a broad range of image processing functions in several categories including image cleanup, medical image DICOM enhancement, color conversion or correction, noise reduction, edge detection and more. Combined with RasterEdge over 30 image and document formats, developers can build variable applications (like C#.NET, VB.NET, ASP.NET and .NET Windows Forms) to handle virtually any imaging requirement directly and easily.
This image scaling instruction article will display following main contents to users:
  • Overview on scaling image benefits within C#.NET image processing library
  • How to create and integrate a C# program to scale image
  • Entire programmed C# methods on image scaling by using C#.NET image management system
  • Compliant C# sample code for users to scale image or develop your own personalized image processing tools
  • Other random recommendation of C# image processing functions
Overview on Image Scaling Benefits and Features in C#
  • 100% programmed streamlining image scaling functions in C# class
  • Automatically apply image decoder tool to open target image file
  • Scale target image proportionally using Visual C# code
  • Mature image scaling method to adjust image size in C# project
  • Multiple image formats for scaling, including: PNG, BMP, JPEG, TIFF and GIF
  • Store scaled image to local file or memory as you wish
  • .NET image printing library is available for scaled image printing in C# class
How to Scale Image in C# Program
This part is aimed at telling users how to create and build a C#.NET project in Visual Studio 2005 and .NET 2.0 (Visual Studio 2008, 2010 and .NET Framework 3.0, 3.5, 4.0 versions are certainly compatible). After the C# application is finished, you need to install our .NET Imaging SDK into your C# project. Detailed procedures are listed below. If you are VB.NET developers and users, please see how to create a VB.NET class project to scale image.
  1. Create a C#.NET project in Visual Studio 2005/2008/2010;
  2. Activate C# Image Libraries license and copy created "RasterEdgeLicense.txt" to the new project folder, together with C# Imaging SDK DLLs;
  3. Integrate imaging processing assemblies to the project by adding reference;
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.Processing.dll
  4. Run following C#.NET imaging using statements:
using RasterEdge.Imaging.Basic;
using RasterEdge.Imaging.Basic.Core;
using RasterEdge.Imaging.Processing;
using RasterEdge.Imaging.Basic.Codec;
Method to Scale Image Using Visual C#
You can use following method to scale image as you want in C#.NET applications. Or you may apply this API for programming your own special image scaling functions.
public static int ApplyResize(REImage img, float ratio);
Entire C# Code for Image Scaling
You can use above ApplyResize method to scale image. Please see the following given C# sample 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()

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

REImage reImage = REFile.OpenImageFile(fileName);

ImageProcessing.ApplyResize(reImage, 0.5f);

REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
Other Image Processing and Manipulation Functions in C#
Users are capable of integrating the powerful .NET image management system and document processing functions for your C#.NET applications. Crucial specific image editing functions are: basic image cropping, pasting, resizing, merging, and image deskewing, despeckling, color reduction, smooth effect and more. For the gross C# image processing functions, please see image processing & manipulating overview in C#.

Recommend this to Google+ is professional provider of 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-2017 Raster