XImage.Raster
Features
Tech Specs
How-to C#
Pricing

C# Imaging Library
How to C#: Crop Image according to Specified Size


Guide for How to Crop Image



How to crop image using C#?

  1. Download XImage.Raster C# imaging library
  2. Install C# library to crop image in .NET applications
  3. Step by Step Tutorial












Steps to Crop image with specific Region



  • Load an image with RasterImage object.
  • Create an image processor with ImageProcess object.
  • Call the method CropImage of ImageProcess object to complete the task croping image.
  • Save the croped image to an image file on the disk.


Steps to Crop image with specific Region



Cropping an image is cutting out a part of the image and keeping only the area you are interested.

Using the XImage.Raster C# Imaging library, you can crop the an image to the specified size.

Here we will show how to crop an image in your C# ASP.NET, Windows Forms or WPF applications.

RasterImage img = new RasterImage("C://input//raster-arrow-down.png");
ImageProcess processor = new ImageProcess(img);
processor.CropImage(new Rectangle(50, 60, 80, 100));
img.Save("C://output//raster-image-crop.png");


Compare the source image and image cropped.

Source image Image cropped