Class QuantizeProcessor
Defines quantization processing for images to reduce the number of colors used in the image palette.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly: SixLabors.ImageSharp.dll
Syntax
public class QuantizeProcessor : IImageProcessor
Constructors
| Improve this Doc View SourceQuantizeProcessor(IQuantizer)
Initializes a new instance of the QuantizeProcessor class.
Declaration
public QuantizeProcessor(IQuantizer quantizer)
Parameters
Type | Name | Description |
---|---|---|
IQuantizer | quantizer | The quantizer used to reduce the color palette. |
Properties
| Improve this Doc View SourceQuantizer
Gets the quantizer.
Declaration
public IQuantizer Quantizer { get; }
Property Value
Type | Description |
---|---|
IQuantizer |
Methods
| Improve this Doc View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
where TPixel : struct, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
Image<TPixel> | source | The source image. Cannot be null. |
Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
Type | Description |
---|---|
IImageProcessor<TPixel> |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |