C# 클래스 ScreenToGif.ImageUtil.Quantitizer.BaseColorQuantizer

상속: IColorQuantizer
파일 보기 프로젝트 열기: dbremner/ScreenToGif

보호된 프로퍼티들

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

공개 메소드들

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

See IColorQuantizer.AddColor for more details.

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.

Prepare ( Bitmap 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.

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 ( Bitmap image ) : void

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

메소드 상세

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

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

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

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 ( Bitmap image ) : void
image System.Drawing.Bitmap
리턴 void

Prepare() 공개 메소드

See IColorQuantizer.Prepare for more details.
public Prepare ( Bitmap image ) : void
image System.Drawing.Bitmap
리턴 void

프로퍼티 상세

UniqueColors 보호되어 있는 프로퍼티

protected ConcurrentDictionary UniqueColors
리턴 Int16>.ConcurrentDictionary