Move canvas to the specified point.

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

Syntax

C#
public class CanvasMove : BaseInPlaceFilter

Remarks

The filter moves canvas to the specified area filling unused empty areas with specified color.

The filter accepts 8/16 bpp grayscale images and 24/32/48/64 bpp color image for processing.

Sample usage:

CopyC#
// create filter
CanvasMove filter = new CanvasMove( new IntPoint( -50, -50 ), Color.Green );
// apply the filter
filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.BaseInPlaceFilter
    AForge.Imaging.Filters..::.CanvasMove

See Also