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
IImageProcessingContextThe current image processing context.
Returns
Quantize(IImageProcessingContext, IQuantizer)
Applies quantization to the image.
public static IImageProcessingContext Quantize(this IImageProcessingContext source, IQuantizer quantizer)
Parameters
source
IImageProcessingContextThe current image processing context.
quantizer
IQuantizerThe quantizer to apply to perform the operation.
Returns
Quantize(IImageProcessingContext, IQuantizer, Rectangle)
Applies quantization to the image.
public static IImageProcessingContext Quantize(this IImageProcessingContext source, IQuantizer quantizer, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
quantizer
IQuantizerThe quantizer to apply to perform the operation.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
Quantize(IImageProcessingContext, Rectangle)
Applies quantization to the image using the OctreeQuantizer.
public static IImageProcessingContext Quantize(this IImageProcessingContext source, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.