• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class GrayscaleQuantizer

Summary description for PaletteQuantizer.

Inheritance
System.Object
Quantizer
PaletteQuantizer
GrayscaleQuantizer
Inherited Members
PaletteQuantizer._colors
PaletteQuantizer.GetPalette(ColorPalette)
Quantizer.Quantize(Image)
Quantizer.FirstPass(BitmapData, Int32, Int32)
Quantizer.SecondPass(BitmapData, Bitmap, Int32, Int32, Rectangle)
Quantizer.InitialQuantizePixel(Quantizer.Color32)
Namespace: DotNetNuke.Services.GeneratedImage.ImageQuantization
Assembly: DotNetNuke.dll
Syntax
public class GrayscaleQuantizer : PaletteQuantizer

Constructors

| Improve this Doc View Source

GrayscaleQuantizer()

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 Source

QuantizePixel(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.

Overrides
PaletteQuantizer.QuantizePixel(Quantizer.Color32)

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS