C# 클래스 SimplePaletteQuantizer.Quantizers.BaseColorQuantizer

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

보호된 프로퍼티들

프로퍼티 타입 설명
UniqueColors Int16>.ConcurrentDictionary

공개 메소드들

메소드 설명
AddColor ( Color color, Int32 x, Int32 y ) : void

See IColorQuantizer.AddColor for more details.

ChangePathProvider ( IPathProvider pathProvider ) : void

Changes the path provider.

Finish ( ) : void

See IColorQuantizer.Finish for more details.

GetColorCount ( ) : Int32

See IColorQuantizer.GetColorCount for more details.

GetPalette ( Int32 colorCount ) : List

See IColorQuantizer.GetPalette for more details.

GetPaletteIndex ( Color color, Int32 x, Int32 y ) : Int32

See IColorQuantizer.GetPaletteIndex for more details.

GetPointPath ( Int32 width, Int32 heigth ) : IList

See IPathProvider.GetPointPath for more details.

Prepare ( ImageBuffer image ) : void

See IColorQuantizer.Prepare for more details.

보호된 메소드들

메소드 설명
BaseColorQuantizer ( ) : System

Initializes a new instance of the BaseColorQuantizer class.

OnAddColor ( Color color, Int32 key, Int32 x, Int32 y ) : void

Called when color is to be added.

OnCreateDefaultPathProvider ( ) : IPathProvider

Called when a need to create default path provider arisen.

OnFinish ( ) : void

Called when about to clear left-overs after quantization.

OnGetColorCount ( ) : Int32

Called when get color count.

OnGetPalette ( Int32 colorCount ) : List

Called when quantized palette is needed.

OnGetPaletteIndex ( Color color, Int32 key, Int32 x, Int32 y, Int32 &paletteIndex ) : void

Called when get palette index for a given color should be returned.

OnPrepare ( ImageBuffer image ) : void

Called when quantizer is about to be prepared for next round.

비공개 메소드들

메소드 설명
GetPathProvider ( ) : IPathProvider

메소드 상세

AddColor() 공개 메소드

See IColorQuantizer.AddColor for more details.
public AddColor ( Color color, Int32 x, Int32 y ) : void
color Color
x System.Int32
y System.Int32
리턴 void

BaseColorQuantizer() 보호된 메소드

Initializes a new instance of the BaseColorQuantizer class.
protected BaseColorQuantizer ( ) : System
리턴 System

ChangePathProvider() 공개 메소드

Changes the path provider.
public ChangePathProvider ( IPathProvider pathProvider ) : void
pathProvider IPathProvider The path provider.
리턴 void

Finish() 공개 메소드

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

GetColorCount() 공개 메소드

See IColorQuantizer.GetColorCount for more details.
public GetColorCount ( ) : Int32
리턴 System.Int32

GetPalette() 공개 메소드

See IColorQuantizer.GetPalette for more details.
public GetPalette ( Int32 colorCount ) : List
colorCount System.Int32
리턴 List

GetPaletteIndex() 공개 메소드

See IColorQuantizer.GetPaletteIndex for more details.
public GetPaletteIndex ( Color color, Int32 x, Int32 y ) : Int32
color Color
x System.Int32
y System.Int32
리턴 System.Int32

GetPointPath() 공개 메소드

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

OnAddColor() 보호된 메소드

Called when color is to be added.
protected OnAddColor ( Color color, Int32 key, Int32 x, Int32 y ) : void
color Color
key System.Int32
x System.Int32
y System.Int32
리턴 void

OnCreateDefaultPathProvider() 보호된 메소드

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

OnFinish() 보호된 메소드

Called when about to clear left-overs after quantization.
protected OnFinish ( ) : void
리턴 void

OnGetColorCount() 보호된 메소드

Called when get color count.
protected OnGetColorCount ( ) : Int32
리턴 System.Int32

OnGetPalette() 보호된 메소드

Called when quantized palette is needed.
protected OnGetPalette ( Int32 colorCount ) : List
colorCount System.Int32
리턴 List

OnGetPaletteIndex() 보호된 메소드

Called when get palette index for a given color should be returned.
protected OnGetPaletteIndex ( Color color, Int32 key, Int32 x, Int32 y, Int32 &paletteIndex ) : void
color Color
key System.Int32
x System.Int32
y System.Int32
paletteIndex System.Int32
리턴 void

OnPrepare() 보호된 메소드

Called when quantizer is about to be prepared for next round.
protected OnPrepare ( ImageBuffer image ) : void
image SimplePaletteQuantizer.Helpers.ImageBuffer
리턴 void

Prepare() 공개 메소드

See IColorQuantizer.Prepare for more details.
public Prepare ( ImageBuffer image ) : void
image SimplePaletteQuantizer.Helpers.ImageBuffer
리턴 void

프로퍼티 상세

UniqueColors 보호되어 있는 프로퍼티

protected ConcurrentDictionary UniqueColors
리턴 Int16>.ConcurrentDictionary