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
SystemObject
  callback.ShellBoost.Core.UtilitiesQuantizer
    callback.ShellBoost.Core.UtilitiesOctreeQuantizer

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFirstPass
Execute the first pass through the pixels in the image
(Inherited from Quantizer.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetPalette
Retrieve the palette for the quantized image
(Overrides QuantizerGetPalette(ColorPalette).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInitialQuantizePixel
Process the pixel in the first pass of the algorithm
(Overrides QuantizerInitialQuantizePixel(QuantizerColor32).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also