C# 클래스 Accord.Imaging.Filters.CanvasFill

Fill areas iniside of the specified region.

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

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

Sample usage:

// create filter CanvasFill filter = new CanvasFill( new Rectangle( 5, 5, image.Width - 10, image.Height - 10 ), Color.Red ); // apply the filter filter.ApplyInPlace( image );
상속: BaseInPlaceFilter
파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
CanvasFill ( Rectangle region ) : System

Initializes a new instance of the CanvasFill class.

CanvasFill ( Rectangle region, Color fillColorRGB ) : System

Initializes a new instance of the CanvasFill class.

CanvasFill ( Rectangle region, Color fillColorRGB, byte fillColorGray ) : System

Initializes a new instance of the CanvasFill class.

CanvasFill ( Rectangle region, byte fillColorGray ) : System

Initializes a new instance of the CanvasFill class.

보호된 메소드들

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

Process the filter on the specified image.

비공개 메소드들

메소드 설명
CanvasFill ( ) : System

메소드 상세

CanvasFill() 공개 메소드

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

CanvasFill() 공개 메소드

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

CanvasFill() 공개 메소드

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

CanvasFill() 공개 메소드

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

ProcessFilter() 보호된 메소드

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