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)
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configuration
Configurationsource
Image<TPixel>sourceRectangle
Rectangle
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixel