Class QuantizeExtensions
Defines extensions that allow the application of quantizing algorithms on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class QuantizeExtensionsMethods
| Edit this page View SourceQuantize(IImageProcessingContext)
Applies quantization to the image using the OctreeQuantizer.
Declaration
public static IImageProcessingContext Quantize(this IImageProcessingContext source)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The current image processing context. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | 
Quantize(IImageProcessingContext, IQuantizer)
Applies quantization to the image.
Declaration
public static IImageProcessingContext Quantize(this IImageProcessingContext source, IQuantizer quantizer)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The current image processing context. | 
| IQuantizer | quantizer | The quantizer to apply to perform the operation. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | 
Quantize(IImageProcessingContext, IQuantizer, Rectangle)
Applies quantization to the image.
Declaration
public static IImageProcessingContext Quantize(this IImageProcessingContext source, IQuantizer quantizer, Rectangle rectangle)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The current image processing context. | 
| IQuantizer | quantizer | The quantizer to apply to perform the operation. | 
| Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | 
Quantize(IImageProcessingContext, Rectangle)
Applies quantization to the image using the OctreeQuantizer.
Declaration
public static IImageProcessingContext Quantize(this IImageProcessingContext source, Rectangle rectangle)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The current image processing context. | 
| Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext |