Table of Contents

Class OctreeQuantizer

Namespace
SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly
SixLabors.ImageSharp.dll

Allows the quantization of images pixels using Octrees. http://msdn.microsoft.com/en-us/library/aa479306.aspx

public class OctreeQuantizer : IQuantizer
Inheritance
OctreeQuantizer
Implements
Inherited Members

Constructors

OctreeQuantizer()

Initializes a new instance of the OctreeQuantizer class using the default QuantizerOptions.

public OctreeQuantizer()

OctreeQuantizer(QuantizerOptions)

Initializes a new instance of the OctreeQuantizer class.

public OctreeQuantizer(QuantizerOptions options)

Parameters

options QuantizerOptions

The quantizer options defining quantization rules.

Properties

Options

Gets the quantizer options defining quantization rules.

public QuantizerOptions Options { get; }

Property Value

QuantizerOptions

Methods

CreatePixelSpecificQuantizer<TPixel>(Configuration)

Creates the generic frame quantizer.

public IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration) where TPixel : unmanaged, IPixel<TPixel>

Parameters

configuration Configuration

The Configuration to configure internal operations.

Returns

IQuantizer<TPixel>

The IQuantizer<TPixel>.

Type Parameters

TPixel

The pixel format.

CreatePixelSpecificQuantizer<TPixel>(Configuration, QuantizerOptions)

Creates the generic frame quantizer.

public IQuantizer<TPixel> CreatePixelSpecificQuantizer<TPixel>(Configuration configuration, QuantizerOptions options) where TPixel : unmanaged, IPixel<TPixel>

Parameters

configuration Configuration

The Configuration to configure internal operations.

options QuantizerOptions

The options to create the quantizer with.

Returns

IQuantizer<TPixel>

The IQuantizer<TPixel>.

Type Parameters

TPixel

The pixel format.