Shrink an image by removing specified color from its boundaries.Namespace: AForge.Imaging.Filters
Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 188.8.131.52 (184.108.40.206)
public class Shrink : BaseTransformationFilter
Removes pixels with specified color from image boundaries making the image smaller in size.
The filter accepts 8 bpp grayscale and 24 bpp color images for processing.
// create filter Shrink filter = new Shrink( Color.Black ); // apply the filter Bitmap newImage = filter.Apply( image );