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

C# Imaging Library
How to C#: Blending Effects


Overview for Blending Effects



How to apply image blending effects using C#?

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










By using the XImage.Raster SDK, you can get and modify the blending effects of image by assigning to processor. The related properties are as follows.
  • Spread Displace the image pixel randomly by the specified amount
  • Median A filter will be applied to the image, the pixel is replaced with the median color in a circular neighborhood. The radius of the circle is under your control.


Steps to Modify Blending Effects



  • Load an image with RasterImage object.
  • Create an image processor with ImageProcess object.
  • Call the SpreadImage method of ImageProcess object to complete the task flopping image.
  • Save the modified image to an image file on the disk.


How to Modify Blending Effects



Sample Code (spread image):

RasterImage img = new RasterImage(@"input.tif");
// This code demonstrates how to create a new processor
ImageProcess processor = new ImageProcess(img);
//spread all pages
processor.SpreadImage(200);
//spread the second page
processor.SpreadImage(200, 1);
img.Save(@"output.tif">);


Sample Code (median image):

RasterImage img = new RasterImage(@"input.tif");
// This code demonstrates how to create a new processor
ImageProcess processor = new ImageProcess(img);
//median all pages
processor.MedianFilter(200);
//median the second page
processor.MedianFilter(200, 1);
img.Save(@"output.tif">);