Shrink an image by removing specified color from its boundaries.Namespace: AForge.Imaging.Filters
Assembly: AForge.Imaging (in AForge.Imaging.dll) Version: 220.127.116.11 (18.104.22.168)
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 );