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

C# Imaging Library
How to C#: Sharpness Effects


Overview for Sharpness Effects



How to apply image sharpness effects using C#?

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










  • Blur Blur image, simulate a "out of focus" effect.
  • MotionBlur Motion blur image with specified blur factor, the angle specifies the angle the object appears to be coming from zero degrees is from the right.
  • Sharpen Sharpen pixels in image.
  • Unsharpen Use a negative scaling to create a mask of the original image, then combined with the original image, creating an image that is less blurry than the original.


Steps to Sharpen Image



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


Modify Sharpness Effects



Sample Code (blur image):

RasterImage img = new RasterImage(@"C:\input.tif");
ImageProcess process = new ImageProcess(img);
//blur the image, set radius 0 will give you a suitable radius, and radius should be larger than sigma.  
process.BlurImage(0, 0.5);
//only blur the second page of the input tif.
process.BlurImage(0, 0.5, 1);
img.Save( @"C:\output.tif">);