Click or drag to resize

OctreeQuantizer Class

Defines an Octree Quantizer. The code is from Morgan Skinner's article on optimizing color quantization at http://msdn2.microsoft.com/en-us/library/aa479306.aspx.
Inheritance Hierarchy

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class OctreeQuantizer : Quantizer

The OctreeQuantizer type exposes the following members.

Constructors
  NameDescription
Public methodOctreeQuantizer(BitDepth)
Initializes a new instance of the OctreeQuantizer class.
Public methodOctreeQuantizer(Int32, Int32)
Initializes a new instance of the OctreeQuantizer class.
Top
Methods
  NameDescription
Protected methodFirstPass
Execute the first pass through the pixels in the image
(Inherited from Quantizer.)
Protected methodGetPalette
Retrieve the palette for the quantized image
(Overrides QuantizerGetPalette(ColorPalette).)
Protected methodInitialQuantizePixel
Process the pixel in the first pass of the algorithm
(Overrides QuantizerInitialQuantizePixel(QuantizerColor32).)
Public methodQuantize
Quantize an image and return the resulting output bitmap
(Inherited from Quantizer.)
Protected methodQuantizePixel
Override this to process the pixel in the second pass of the algorithm
(Overrides QuantizerQuantizePixel(QuantizerColor32).)
Protected methodSecondPass
Execute a second pass through the bitmap
(Inherited from Quantizer.)
Top
See Also