Property | Type | Description | |
---|---|---|---|
UniqueColors | Int16>.ConcurrentDictionary |
Method | Description | |
---|---|---|
AddColor ( Color color, |
See IColorQuantizer.AddColor for more details.
|
|
Finish ( ) : void |
See IColorQuantizer.Finish for more details.
|
|
GetColorCount ( ) : |
See IColorQuantizer.GetColorCount for more details.
|
|
GetPalette ( |
See IColorQuantizer.GetPalette for more details.
|
|
GetPaletteIndex ( Color color, |
See IColorQuantizer.GetPaletteIndex for more details.
|
|
Prepare ( |
See IColorQuantizer.Prepare for more details.
|
Method | Description | |
---|---|---|
BaseColorQuantizer ( ) : System |
Initializes a new instance of the BaseColorQuantizer class.
|
|
OnAddColor ( Color color, |
Called when color is to be added.
|
|
OnFinish ( ) : void |
Called when about to clear left-overs after quantization.
|
|
OnGetColorCount ( ) : |
Called when get color count.
|
|
OnGetPalette ( |
Called when quantized palette is needed.
|
|
OnGetPaletteIndex ( Color color, |
Called when get palette index for a given color should be returned.
|
|
OnPrepare ( |
Called when quantizer is about to be prepared for next round.
|
public AddColor ( Color color, |
||
color | Color | |
x | ||
y | ||
return | void |
public GetPalette ( |
||
colorCount | ||
return | List |
public GetPaletteIndex ( Color color, |
||
color | Color | |
x | ||
y | ||
return |
protected OnAddColor ( Color color, |
||
color | Color | |
key | ||
x | ||
y | ||
return | void |
protected OnGetPalette ( |
||
colorCount | ||
return | List |
protected OnGetPaletteIndex ( Color color, |
||
color | Color | |
key | ||
x | ||
y | ||
paletteIndex | ||
return | void |
protected OnPrepare ( |
||
image | ||
return | void |
public Prepare ( |
||
image | ||
return | void |