Quantizer.QuantizeImage Method

Namespace:
Weavy.Core.Imaging
Assembly:
Weavy.Core.dll

QuantizeImage(BitmapData, BitmapData, Bitmap, int, int, Rectangle)

Execute a second pass through the bitmap. If dithering is enabled, sourceData will be modified.

protected virtual void QuantizeImage(BitmapData sourceData, BitmapData intermediate, Bitmap output, int width, int height, Rectangle bounds)

Parameters

sourceData
System.Drawing.Imaging.BitmapData

The source bitmap, locked into memory

intermediate
System.Drawing.Imaging.BitmapData

The intermediate bitmap, used for 4-pass quantization. If specified, output will not actually be modified

output
System.Drawing.Bitmap

The output bitmap

width
int

The width in pixels of the image

height
int

The height in pixels of the image

bounds
System.Drawing.Rectangle

The bounding rectangle