Méthode | Description | |
---|---|---|
IsColorIn ( Color color ) : System.Boolean |
Determines whether the color is in the space of this cube.
|
|
MedianCutCube ( ICollection |
Initializes a new instance of the MedianCutCube class.
|
|
SetPaletteIndex ( |
Assigns a palette index to this cube, to be later found by a GetPaletteIndex method.
|
|
SplitAtMedian ( Byte componentIndex, |
Splits this cube's color list at median index, and returns two newly created cubes.
|
Méthode | Description | |
---|---|---|
Shrink ( ) : void |
Shrinks this cube to the least dimensions that covers all the colors in the RGB space.
|
public IsColorIn ( Color color ) : System.Boolean | ||
color | Color | The color to be checked, if it's contained in this cube. |
Résultat | System.Boolean |
public MedianCutCube ( ICollection |
||
colors | ICollection |
The colors. |
Résultat | System |
public SetPaletteIndex ( |
||
newPaletteIndex | The palette index to be assigned to this cube. | |
Résultat | void |
public SplitAtMedian ( Byte componentIndex, |
||
componentIndex | Byte | Index of the component (red = 0, green = 1, blue = 2). |
firstMedianCutCube | The first created cube. | |
secondMedianCutCube | The second created cube. | |
Résultat | void |