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

C# Imaging Library
Create image with options applied in C#


How to Load image(s) to memory addition options with C# XImage.Raster SDK.





Prior to performing image processing on an image, you must specify whether the entire image, or a section of the image, should be processed.


How to process image on the specified regions using C#?

  1. Download XImage.Raster C# imaging library
  2. Install C# library to process image on the specified regions in .NET applications
  3. Step by Step Tutorial












Steps to Select an image region or area to Process



  • Load an image with RasterImage object.
  • Create an image processor with ImageProcess object.
  • Set the region will be processed.
  • According to your needs, you can call the following method in ImageProcess.cs to process the select image region freely.

    public void WaveImage(double amplitude, double wave length)
    public void VignetteImage(double radius, double sigma, int x, int y)
    public void TrimImage()
    public void TransformResolution(int horiResolution, int vertResolution)


Select an area or region to Process



You can specify whether process the entire image or just a section of the image.

Sample Code (process the whole image):

RasterImage img = new RasterImage(@input.jpeg);
//process the whole image. 
ImageProcess processor = new ImageProcess(img);
processor.WaveImage(10,10);
erImage img = new RasterImage(inputFilePath); 
//Convert format and save. 
img.Save(outputFilePath);


Sample Code (process the image of the specified region):

RasterImage img = new RasterImage(@input.jpeg);
ImageProcess processor = new ImageProcess(img);
//set the area(0,0,100,100) to process
processor.SetArea = new Rectangle(0, 0, 100, 100);
processor.WaveImage(10,10);
//when the specified process is end , must set this flag to true.
processor.AreaProcessEnd = true;