Table of Contents

Class QuantizeExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Defines extensions that allow the application of quantizing algorithms on an Image using Mutate/Clone.

public static class QuantizeExtensions
Inheritance
QuantizeExtensions
Inherited Members

Methods

Quantize(IImageProcessingContext)

Applies quantization to the image using the OctreeQuantizer.

public static IImageProcessingContext Quantize(this IImageProcessingContext source)

Parameters

source IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

Quantize(IImageProcessingContext, IQuantizer)

Applies quantization to the image.

public static IImageProcessingContext Quantize(this IImageProcessingContext source, IQuantizer quantizer)

Parameters

source IImageProcessingContext

The current image processing context.

quantizer IQuantizer

The quantizer to apply to perform the operation.

Returns

IImageProcessingContext

The IImageProcessingContext.

Quantize(IImageProcessingContext, IQuantizer, Rectangle)

Applies quantization to the image.

public static IImageProcessingContext Quantize(this IImageProcessingContext source, IQuantizer quantizer, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

quantizer IQuantizer

The quantizer to apply to perform the operation.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

Quantize(IImageProcessingContext, Rectangle)

Applies quantization to the image using the OctreeQuantizer.

public static IImageProcessingContext Quantize(this IImageProcessingContext source, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.