C# Class SEToolbox.ImageLibrary.PaletteReplacerQuantizer

Summary description for SEPaletteQuantizer.
Inheritance: Quantizer
ファイルを表示 Open project: midspace/SEToolbox

Public Methods

Method Description
PaletteReplacerQuantizer ( Color>.Dictionary paletteReplacement ) : System.Collections

Construct the palette quantizer

Palette quantization only requires a single quantization step

Protected Methods

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

Method Details

GetPalette() protected method

Retrieve the palette for the quantized image
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

PaletteReplacerQuantizer() public method

Construct the palette quantizer
Palette quantization only requires a single quantization step
public PaletteReplacerQuantizer ( Color>.Dictionary paletteReplacement ) : System.Collections
paletteReplacement Color>.Dictionary The color palette to quantize to
return System.Collections

QuantizePixel() protected method

Override this to process the pixel in the second pass of the algorithm
protected QuantizePixel ( Color32 pixel ) : byte
pixel Color32 The pixel to quantize
return byte