C# Class SEToolbox.ImageLibrary.PaletteQuantizer

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

Public Methods

Method Description
PaletteQuantizer ( ArrayList palette ) : 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

PaletteQuantizer() public method

Construct the palette quantizer
Palette quantization only requires a single quantization step
public PaletteQuantizer ( ArrayList palette ) : System.Collections
palette System.Collections.ArrayList 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