예제 #1
0
 /// <summary>
 /// Construct the palette quantizer
 /// </summary>
 /// <param name="palette">The color palette to quantize to</param>
 /// <remarks>
 /// Palette quantization only requires a single quantization step
 /// </remarks>
 public PaletteQuantizer(List<Color> palette)
     : base(true)
 {
     _colorMap = new Dictionary<uint, byte>();
     _colors = new Color[palette.Count];
     palette.CopyTo(_colors);
 }