Property | Type | Description | |
---|---|---|---|
_colors | System.Drawing.Color[] |
Method | Description | |
---|---|---|
PaletteQuantizer ( |
Construct the palette quantizer Palette quantization only requires a single quantization step |
Method | Description | |
---|---|---|
GetPalette ( System.Drawing.Imaging.ColorPalette palette ) : System.Drawing.Imaging.ColorPalette |
Retrieve the palette for the quantized image
|
|
QuantizePixel ( Color32 pixel ) : byte |
Override this to process the pixel in the second pass of the algorithm
|
protected GetPalette ( System.Drawing.Imaging.ColorPalette palette ) : System.Drawing.Imaging.ColorPalette | ||
palette | System.Drawing.Imaging.ColorPalette | Any old palette, this is overrwritten |
return | System.Drawing.Imaging.ColorPalette |
public PaletteQuantizer ( |
||
palette | The color palette to quantize to | |
return | System.Collections |
protected QuantizePixel ( Color32 pixel ) : byte | ||
pixel | Color32 | The pixel to quantize |
return | byte |