C# Класс AForge.Imaging.Filters.CanvasMove

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:

Наследование: BaseInPlaceFilter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanvasMove ( IntPoint movePoint ) : System.Drawing

Initializes a new instance of the CanvasMove class.

CanvasMove ( IntPoint movePoint, Color fillColorRGB ) : System.Drawing

Initializes a new instance of the CanvasMove class.

CanvasMove ( IntPoint movePoint, Color fillColorRGB, byte fillColorGray ) : System.Drawing

Initializes a new instance of the CanvasMove class.

CanvasMove ( IntPoint movePoint, byte fillColorGray ) : System.Drawing

Initializes a new instance of the CanvasMove class.

Защищенные методы

Метод Описание
ProcessFilter ( UnmanagedImage image ) : void

Process the filter on the specified image.

Приватные методы

Метод Описание
CanvasMove ( ) : System.Drawing
ProcessFilter16bpc ( UnmanagedImage image ) : void
ProcessFilter8bpc ( UnmanagedImage image ) : void

Описание методов

CanvasMove() публичный метод

Initializes a new instance of the CanvasMove class.
public CanvasMove ( IntPoint movePoint ) : System.Drawing
movePoint IntPoint Point to move the canvas to.
Результат System.Drawing

CanvasMove() публичный метод

Initializes a new instance of the CanvasMove class.
public CanvasMove ( IntPoint movePoint, Color fillColorRGB ) : System.Drawing
movePoint IntPoint Point to move the canvas.
fillColorRGB System.Drawing.Color RGB color to use for filling areas empty areas in color images.
Результат System.Drawing

CanvasMove() публичный метод

Initializes a new instance of the CanvasMove class.
public CanvasMove ( IntPoint movePoint, Color fillColorRGB, byte fillColorGray ) : System.Drawing
movePoint IntPoint Point to move the canvas.
fillColorRGB System.Drawing.Color RGB color to use for filling areas empty areas in color images.
fillColorGray byte Gray color to use for filling empty areas in grayscale images.
Результат System.Drawing

CanvasMove() публичный метод

Initializes a new instance of the CanvasMove class.
public CanvasMove ( IntPoint movePoint, byte fillColorGray ) : System.Drawing
movePoint IntPoint Point to move the canvas.
fillColorGray byte Gray color to use for filling empty areas in grayscale images.
Результат System.Drawing

ProcessFilter() защищенный метод

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image ) : void
image UnmanagedImage Source image data.
Результат void