Move canvas to the specified point.

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:

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

Initial image:

Result image:

Inheritance: BaseInPlaceFilter
Example #1
0
        private void SetFilter()
        {
            ImageType = ImageTypes.Rgb48bpp;

            Af.CanvasMove newFilter = new Af.CanvasMove(new Accord.IntPoint(translation.X, translation.Y));
            newFilter.FillColorRGB = color;
            imageFilter            = newFilter;
        }