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.
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">);