Method | Description | |
---|---|---|
AddColor ( Color32 pixel ) : void |
Add a given color value to the octree
|
|
GetPaletteIndex ( Color32 pixel ) : int |
Get the palette index for the passed color
|
|
Octree ( int maxColorBits ) : System |
Construct the octree
|
|
Palletize ( int colorCount ) : |
Convert the nodes in the octree to a palette with a maximum of colorCount colors
|
|
Reduce ( ) : void |
Reduce the depth of the tree
|
Method | Description | |
---|---|---|
TrackPrevious ( OctreeNode node ) : void |
Keep track of the previous node that was quantized
|
public GetPaletteIndex ( Color32 pixel ) : int | ||
pixel | Color32 | |
return | int |
public Octree ( int maxColorBits ) : System | ||
maxColorBits | int | The maximum number of significant bits in the image |
return | System |
public Palletize ( int colorCount ) : |
||
colorCount | int | The maximum number of colors |
return |
protected TrackPrevious ( OctreeNode node ) : void | ||
node | OctreeNode | The node last quantized |
return | void |