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