Initializes a new instance of the CanvasCrop class.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public CanvasCrop(
	Rectangle region,
	Color fillColorRGB,
	byte fillColorGray
)

Parameters

region
Type: System.Drawing..::.Rectangle
Region to keep.
fillColorRGB
Type: System.Drawing..::.Color
RGB color to use for filling areas outside of specified region in color images.
fillColorGray
Type: System..::.Byte
Gray color to use for filling areas outside of specified region in grayscale images.

See Also