Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
SplitCubes ( List |
public AddColor ( Color color ) : void | ||
color | Color | Color to add to the internal list. |
Результат | void |
public GetPalette ( int colorCount ) : Color[] | ||
colorCount | int | Palette size to get. |
Результат | Color[] |