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 QuantizeExtensions
Methods
| Improve this Doc 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 image this method extends. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 image this method extends. |
IQuantizer | quantizer | The quantizer to apply to perform the operation. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 image this method extends. |
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 | The IImageProcessingContext to allow chaining of operations. |
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 image this method extends. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |