C# Class 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:

Inheritance: BaseInPlaceFilter
Afficher le fichier Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
ProcessFilter ( UnmanagedImage image ) : void

Process the filter on the specified image.

Private Methods

Méthode Description
CanvasMove ( ) : System.Drawing
ProcessFilter16bpc ( UnmanagedImage image ) : void
ProcessFilter8bpc ( UnmanagedImage image ) : void

Method Details

CanvasMove() public méthode

Initializes a new instance of the CanvasMove class.
public CanvasMove ( IntPoint movePoint ) : System.Drawing
movePoint IntPoint Point to move the canvas to.
Résultat System.Drawing

CanvasMove() public méthode

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.
Résultat System.Drawing

CanvasMove() public méthode

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.
Résultat System.Drawing

CanvasMove() public méthode

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.
Résultat System.Drawing

ProcessFilter() protected méthode

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image ) : void
image UnmanagedImage Source image data.
Résultat void