C# Class SEToolbox.ImageLibrary.PaletteReplacerQuantizer

Summary description for SEPaletteQuantizer.
Inheritance: Quantizer
Afficher le fichier Open project: midspace/SEToolbox

Méthodes publiques

Méthode Description
PaletteReplacerQuantizer ( Color>.Dictionary paletteReplacement ) : System.Collections

Construct the palette quantizer

Palette quantization only requires a single quantization step

Méthodes protégées

Méthode 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 méthode

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
Résultat System.Drawing.Imaging.ColorPalette

PaletteReplacerQuantizer() public méthode

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
Résultat System.Collections

QuantizePixel() protected méthode

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