- About Graphics Mill
- What's New?
- Breaking Changes in Graphics Mill 12
- Breaking Changes in Graphics Mill 11
- Features
- Supported File Formats
- System Requirements
- Getting Started
- Working with Image Formats
- Transforming Images (Resize, Rotate, Crop)
- Working with Metadata
- Color Management and Color Reduction
- Drawing Text and Graphics
- Color Keying (Green Screen Removal)
- Channels and Pixel Data
- Color and Tone Correction
- Working with Photoshop (PSD) Files
- Image Filters
- Processing Large Images
- Basics of Image Processing
- Troubleshooting
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Codecs.ClippingPath Namespace
- Aurigma.GraphicsMill.Codecs.Psd Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Aurigma.GraphicsMill.Drawing.Art Namespace
- Aurigma.GraphicsMill.Drawing.Effects Namespace
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Templates Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- AddNoise Class
- AdjustHsl Class
- AutoCrop Class
- BezierTransform Class
- Blender Class
- BlenderOnInitEventArgs Class
- BlendMode Enumeration
- Blur Class
- Brightness Class
- BrightnessContrast Class
- ChannelBalance Class
- CnvTransform Class
- ColorConverter Class
- ColorManagementEngine Enumeration
- ColorOverlay Class
- ColorQuantizationAlgorithm Enumeration
- ColorTransformationIntent Enumeration
- CombineMode Enumeration
- Combiner Class
- CombinerOnInitEventArgs Class
- Contrast Class
- Crop Class
- Cylindrize Class
- Desaturate Class
- DistributionKind Enumeration
- DitheringType Enumeration
- EdgeDetect Class
- EdgeDetectMode Enumeration
- Emboss Class
- FadeType Enumeration
- Flip Class
- FlipType Enumeration
- FloodFill Class
- FloodFillMode Enumeration
- GreenScreenRemoval Class
- HistogramEqualize Class
- IBitmapTransform Interface
- ImageTransmitter Class
- InterpolationMode Enumeration
- Invert Class
- Levels Class
- Lut Class
- LutInterpolationMode Enumeration
- LutTransform Class
- MaskTransform Class
- Matrix Class
- MatrixTransform Class
- Maximum Class
- Median Class
- Minimum Class
- Mosaic Class
- RemoveAlpha Class
- Resize Class
- ResizeInterpolationMode Enumeration
- ResizeMode Enumeration
- ResolutionModifier Class
- Rotate Class
- ScaleAlpha Class
- SetAlpha Class
- Shadow Class
- Sharpen Class
- SmartBlur Class
- Solarize Class
- Spray Class
- StackBlur Class
- Texturize Class
- Transform Class
- Transparentize Class
- UnsharpMask Class
- Licensing
- End User License Agreement
- Copyright Notices
ColorQuantizationAlgorithm Enumeration
Contains possible values of color quantization algorithms.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
public enum ColorQuantizationAlgorithm
Members
| Member name | Description |
|---|---|
| MedianCut |
Median cut algorithm. The algorithm fits a box around all colors used in the RGB colorspace which it splits at the median value of its longest side. The algorithm stops after 255 recursions. All colors in one box are mapped to the centroid of this box. Implementing this algorithm on very big images can cause an exception in Graphics Mill x86 (32-bit) edition. |
| Octree |
Octree algorithm. The algorithm encodes image colour data as an octree up to nine levels deep. The node index to branch out from at the top level is determined by a formula that uses the most significant bits of the red, green, and blue colour components. The next lower level uses the next bit significance, and so on. Less significant bits are sometimes ignored to reduce the tree size. The algorithm is highly memory efficient because the tree's size can be limited. The bottom level of the octree consists of leaf nodes that accrue colour data not represented in the tree; these nodes initially contain single bits. If much more than the desired number of palette colours are entered into the octree, its size can be continually reduced by seeking out a bottom-level node and averaging its bit data up into a leaf node, pruning part of the tree. Once sampling is complete, exploring all routes in the tree down to the leaf nodes, taking note of the bits along the way, will yield approximately the required number of colours. |
Remarks
Color quantization is a process that reduces the number of distinct colors used in an image with the intention that the new image should be as visually similar as possible to the original image. It is used when you convert, say, 24-bit image to 8-bit (or lower).