|
| | OctreeQuantizer (int maxColors, int maxColorBits) |
| | Construct the octree quantizer.
|
| |
| Bitmap | Quantize (Image source) |
| | Quantize an image and return the resulting output bitmap.
|
| |
|
| override void | InitialQuantizePixel (Color32 *pixel) |
| | Process the pixel in the first pass of the algorithm.
|
| |
| override byte | QuantizePixel (Color32 *pixel) |
| | Override this to process the pixel in the second pass of the algorithm.
|
| |
| override ColorPalette | GetPalette (ColorPalette original) |
| | Retrieve the palette for the quantized image.
|
| |
| | Quantizer (bool singlePass) |
| | Construct the quantizer.
|
| |
| void | FirstPass (BitmapData sourceData, int width, int height) |
| | Execute the first pass through the pixels in the image.
|
| |
| void | SecondPass (BitmapData sourceData, Bitmap output, int width, int height, Rectangle bounds) |
| | Execute a second pass through the bitmap.
|
| |
| ImageManipulation.OctreeQuantizer.OctreeQuantizer |
( |
int |
maxColors, |
|
|
int |
maxColorBits |
|
) |
| |
Construct the octree quantizer.
The Octree quantizer is a two pass algorithm. The initial pass sets up the octree, the second pass quantizes a color based on the nodes in the tree.
- Parameters
-
| maxColors | The maximum number of colors to return. |
| maxColorBits | The number of significant bits. |
| override ColorPalette ImageManipulation.OctreeQuantizer.GetPalette |
( |
ColorPalette |
original | ) |
|
|
protectedvirtual |
Retrieve the palette for the quantized image.
- Parameters
-
| original | Any old palette, this is overrwritten. |
- Returns
- The new color palette.
Implements ImageManipulation.Quantizer.
| override void ImageManipulation.OctreeQuantizer.InitialQuantizePixel |
( |
Color32 * |
pixel | ) |
|
|
protectedvirtual |
Process the pixel in the first pass of the algorithm.
- Parameters
-
| pixel | The pixel to quantize. |
This function need only be overridden if your quantize algorithm needs two passes, such as an Octree quantizer.
Reimplemented from ImageManipulation.Quantizer.
| override byte ImageManipulation.OctreeQuantizer.QuantizePixel |
( |
Color32 * |
pixel | ) |
|
|
protectedvirtual |
Override this to process the pixel in the second pass of the algorithm.
- Parameters
-
| pixel | The pixel to quantize. |
- Returns
- The quantized value.
Implements ImageManipulation.Quantizer.
The documentation for this class was generated from the following file: