The filter fills areas outside of specified region using the specified color.
The filter accepts 8bpp grayscale and 24/32 bpp color images for processing.
Sample usage:
// create filter CanvasCrop filter = new CanvasCrop( new Rectangle( 5, 5, image.Width - 10, image.Height - 10 ), Color.Red ); // apply the filter filter.ApplyInPlace( image );
Initial image:
Result image: