How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Load
Image Access and Modify
Geometry: Resize
Geometry: Resize
  |  
Home ›› XImage.Raster ›› C# Raster: Resize Image according to Specified Size

How to C#: Resize Image according to Specified Size


Guide for How to Resize Image




Resize Image



By using the XImage.Raster SDK, you can modify the image size and orientation by assigning it to the processor. Resize the image(in pixel) according to the specified interpolate method(Interpolate method enumeration).


Sample Code (resize current image according to specified size):




RasterImage img = new RasterImage(@"F:\input.tif");
ImageProcess process = new ImageProcess(img);
//Resize all the pages, the target size is 100x100.
process.ReSizeImage(new Size(100, 100), InterpolateMethod.BicubicInterpolatePixel);
//Only resize the second page of the input tif.
process.ReSizeImage(new Size(100, 100), InterpolateMethod.BicubicInterpolatePixel, 1);