C# 클래스 AForge.Imaging.Filters.CanvasCrop

Fill areas outiside of specified region.

The filter fills areas outside of specified region using the specified color.

The filter accepts 8bpp grayscale and 24/32 bpp color images for processing.

Sample usage:

// create filter CanvasCrop filter = new CanvasCrop( new Rectangle( 5, 5, image.Width - 10, image.Height - 10 ), Color.Red ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

상속: BaseInPlaceFilter
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET

공개 메소드들

메소드 설명
CanvasCrop ( Rectangle region ) : System.Drawing

Initializes a new instance of the CanvasCrop class.

CanvasCrop ( Rectangle region, Color fillColorRGB ) : System.Drawing

Initializes a new instance of the CanvasCrop class.

CanvasCrop ( Rectangle region, Color fillColorRGB, byte fillColorGray ) : System.Drawing

Initializes a new instance of the CanvasCrop class.

CanvasCrop ( Rectangle region, byte fillColorGray ) : System.Drawing

Initializes a new instance of the CanvasCrop class.

보호된 메소드들

메소드 설명
ProcessFilter ( UnmanagedImage image ) : void

Process the filter on the specified image.

비공개 메소드들

메소드 설명
CanvasCrop ( ) : System.Drawing

메소드 상세

CanvasCrop() 공개 메소드

Initializes a new instance of the CanvasCrop class.
public CanvasCrop ( Rectangle region ) : System.Drawing
region System.Drawing.Rectangle Region to keep.
리턴 System.Drawing

CanvasCrop() 공개 메소드

Initializes a new instance of the CanvasCrop class.
public CanvasCrop ( Rectangle region, Color fillColorRGB ) : System.Drawing
region System.Drawing.Rectangle Region to keep.
fillColorRGB System.Drawing.Color RGB color to use for filling areas outside of specified region in color images.
리턴 System.Drawing

CanvasCrop() 공개 메소드

Initializes a new instance of the CanvasCrop class.
public CanvasCrop ( Rectangle region, Color fillColorRGB, byte fillColorGray ) : System.Drawing
region System.Drawing.Rectangle Region to keep.
fillColorRGB System.Drawing.Color RGB color to use for filling areas outside of specified region in color images.
fillColorGray byte Gray color to use for filling areas outside of specified region in grayscale images.
리턴 System.Drawing

CanvasCrop() 공개 메소드

Initializes a new instance of the CanvasCrop class.
public CanvasCrop ( Rectangle region, byte fillColorGray ) : System.Drawing
region System.Drawing.Rectangle Region to keep.
fillColorGray byte Gray color to use for filling areas outside of specified region in grayscale images.
리턴 System.Drawing

ProcessFilter() 보호된 메소드

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image ) : void
image UnmanagedImage Source image data.
리턴 void