Method | Description | |
---|---|---|
AddColor ( Color color ) : void |
Add color to the list of processed colors. The method adds the specified color into internal list of processed colors. The list is used later by GetPalette method to build reduced color table of the specified size. |
|
Clear ( ) : void |
Clear internal state of the color quantization algorithm by clearing the list of colors so far processed.
|
|
GetPalette ( int colorCount ) : Color[] |
Get paletter of the specified size. The method must be called after continuously calling AddColor method and returns reduced color palette for colors accumulated/processed so far. |
Method | Description | |
---|---|---|
SplitCubes ( List |
public AddColor ( Color color ) : void | ||
color | Color | Color to add to the internal list. |
return | void |
public GetPalette ( int colorCount ) : Color[] | ||
colorCount | int | Palette size to get. |
return | Color[] |