Class GrayscaleQuantizer
Summary description for PaletteQuantizer.
Inherited Members
Namespace: DotNetNuke.Services.GeneratedImage.ImageQuantization
Assembly: DotNetNuke.dll
Syntax
public class GrayscaleQuantizer : PaletteQuantizer
Constructors
| Improve this Doc View SourceGrayscaleQuantizer()
Initializes a new instance of the GrayscaleQuantizer class. Construct the palette quantizer.
Declaration
public GrayscaleQuantizer()
Remarks
Palette quantization only requires a single quantization step.
Methods
| Improve this Doc View SourceQuantizePixel(Quantizer.Color32)
Override this to process the pixel in the second pass of the algorithm.
Declaration
protected override byte QuantizePixel(Quantizer.Color32 pixel)
Parameters
| Type | Name | Description |
|---|---|---|
| Quantizer.Color32 | pixel | The pixel to quantize. |
Returns
| Type | Description |
|---|---|
| System.Byte | The quantized value. |