C# Class Warcraft.Core.Quantization.PaletteQuantizer

Summary description for PaletteQuantizer.
Inheritance: Quantizer
Afficher le fichier Open project: Nihlus/libwarcraft Class Usage Examples

Protected Properties

Свойство Type Description
_colors System.Drawing.Color[]

Méthodes publiques

Méthode Description
PaletteQuantizer ( ArrayList palette ) : 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

PaletteQuantizer() public méthode

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
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

Property Details

_colors protected_oe property

List of all colors in the palette
protected Color[],System.Drawing _colors
Résultat System.Drawing.Color[]