Property | Type | Description | |
---|---|---|---|
UniqueColors | Int16>.ConcurrentDictionary |
Method | Description | |
---|---|---|
AddColor ( Color color, |
See IColorQuantizer.AddColor for more details.
|
|
ChangePathProvider ( IPathProvider pathProvider ) : void |
Changes the path provider.
|
|
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.
|
|
GetPointPath ( |
See IPathProvider.GetPointPath 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.
|
|
OnCreateDefaultPathProvider ( ) : IPathProvider |
Called when a need to create default path provider arisen.
|
|
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.
|
Method | Description | |
---|---|---|
GetPathProvider ( ) : IPathProvider |
public AddColor ( Color color, |
||
color | Color | |
x | ||
y | ||
return | void |
public ChangePathProvider ( IPathProvider pathProvider ) : void | ||
pathProvider | IPathProvider | The path provider. |
return | void |
public GetPalette ( |
||
colorCount | ||
return | List |
public GetPaletteIndex ( Color color, |
||
color | Color | |
x | ||
y | ||
return |
public GetPointPath ( |
||
width | ||
heigth | ||
return | IList |
protected OnAddColor ( Color color, |
||
color | Color | |
key | ||
x | ||
y | ||
return | void |
protected OnCreateDefaultPathProvider ( ) : IPathProvider | ||
return | IPathProvider |
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 |