Class ImageBuffer.ColorPalette
The colors an image is made of, largest share first, as produced by ExtractColorPalette(ColorPaletteOptions).
public sealed class ImageBuffer.ColorPalette
- Inheritance
-
ImageBuffer.ColorPalette
- Inherited Members
Fields
- Empty
A palette with no colors: an empty or fully transparent image.
Properties
- CoveredPixels
The number of opaque source pixels the analysis weighed.
- CoveredShare
The sum of the listed shares: 1 when every pixel is accounted for by a listed color.
- Dominant
The color covering the largest part of the image, or null when the palette is empty.
- DominantTerm
The basic color term that names the largest part of the image once shades are pooled by term (two blues outweigh one slightly larger gray), or null when the palette is empty. This is the answer to "what color is this image".
- IsEmpty
True when the image had no opaque pixel to read.
- Iterations
The number of refinement passes the clustering took to converge.
- SampleCount
The number of box-averaged samples the clustering ran on.
Methods
- ShareOf(BasicColorTerm)
The share of the image (0 to 1) named by
term, summed over every swatch that carries it: the answer to "how blue is this image".