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. pdf compress in c#, pdf api, pdf reader to byte array c#, convert excel to pdf using c# windows application, how to read pdf file in using c#, c# combine multiple tiff.
Related .net document control helps: pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents pdf viewer control free: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects document viewer free: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS... edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C# pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
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. pdf viewer component, insert image into pdf, display pdf from byte array c#, read pdf file using itextsharp, c# parse pdf form, convert pdf to word, pdf to html
This image scaling instruction article will display following main contents to users:
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 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