C# 클래스 SimplePaletteQuantizer.Ditherers.BaseColorDitherer

상속: IColorDitherer
파일 보기 프로젝트 열기: RHY3756547/FreeSO

공개 메소드들

메소드 설명
ChangePathProvider ( IPathProvider pathProvider ) : void
Finish ( ) : void

See IColorDitherer.Prepare for more details.

GetPointPath ( ) : IList

Retrieves the path in which to traverse

GetPointPath ( Int32 width, Int32 heigth ) : IList

See IPathProvider.GetPointPath for more details.

Prepare ( IColorQuantizer quantizer, Int32 colorCount, ImageBuffer sourceBuffer, ImageBuffer targetBuffer ) : void

See IColorDitherer.Prepare for more details.

ProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean

See ProcessPixel for more details.

보호된 메소드들

메소드 설명
CreateCoeficientMatrix ( ) : ].Byte[

Creates the coeficient matrix.

GetClampedColorElement ( Int32 colorElement ) : Int32
GetClampedColorElementWithError ( Int32 colorElement, System.Single factor, Int32 error ) : Int32
OnCreateDefaultPathProvider ( ) : IPathProvider

Called when a need to create default path provider arisen.

OnFinish ( ) : void

Called when dithering is finished.

OnPrepare ( ) : void

Called when ditherer is about to be prepared.

OnProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean

Allows ditherer to process image per pixel, with ability to access the rest of the image.

비공개 메소드들

메소드 설명
GetMatrixFactor ( ) : Int32
GetPathProvider ( ) : IPathProvider

메소드 상세

ChangePathProvider() 공개 메소드

public ChangePathProvider ( IPathProvider pathProvider ) : void
pathProvider IPathProvider
리턴 void

CreateCoeficientMatrix() 보호된 추상적인 메소드

Creates the coeficient matrix.
protected abstract CreateCoeficientMatrix ( ) : ].Byte[
리턴 ].Byte[

Finish() 공개 메소드

See IColorDitherer.Prepare for more details.
public Finish ( ) : void
리턴 void

GetClampedColorElement() 보호된 메소드

protected GetClampedColorElement ( Int32 colorElement ) : Int32
colorElement System.Int32
리턴 System.Int32

GetClampedColorElementWithError() 보호된 메소드

protected GetClampedColorElementWithError ( Int32 colorElement, System.Single factor, Int32 error ) : Int32
colorElement System.Int32
factor System.Single
error System.Int32
리턴 System.Int32

GetPointPath() 공개 메소드

Retrieves the path in which to traverse
public GetPointPath ( ) : IList
리턴 IList

GetPointPath() 공개 메소드

See IPathProvider.GetPointPath for more details.
public GetPointPath ( Int32 width, Int32 heigth ) : IList
width System.Int32
heigth System.Int32
리턴 IList

OnCreateDefaultPathProvider() 보호된 메소드

Called when a need to create default path provider arisen.
protected OnCreateDefaultPathProvider ( ) : IPathProvider
리턴 IPathProvider

OnFinish() 보호된 메소드

Called when dithering is finished.
protected OnFinish ( ) : void
리턴 void

OnPrepare() 보호된 메소드

Called when ditherer is about to be prepared.
protected OnPrepare ( ) : void
리턴 void

OnProcessPixel() 보호된 추상적인 메소드

Allows ditherer to process image per pixel, with ability to access the rest of the image.
protected abstract OnProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean
sourcePixel Pixel
targetPixel Pixel
리턴 System.Boolean

Prepare() 공개 메소드

See IColorDitherer.Prepare for more details.
public Prepare ( IColorQuantizer quantizer, Int32 colorCount, ImageBuffer sourceBuffer, ImageBuffer targetBuffer ) : void
quantizer IColorQuantizer
colorCount System.Int32
sourceBuffer SimplePaletteQuantizer.Helpers.ImageBuffer
targetBuffer SimplePaletteQuantizer.Helpers.ImageBuffer
리턴 void

ProcessPixel() 공개 메소드

See ProcessPixel for more details.
public ProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean
sourcePixel Pixel
targetPixel Pixel
리턴 System.Boolean