Class ImageBuffer.ColorSwatch
One color of a palette produced by ExtractColorPalette(ColorPaletteOptions): the color itself, how much of the image it covers, and the basic term that names it.
public sealed class ImageBuffer.ColorSwatch
- Inheritance
-
ImageBuffer.ColorSwatch
- Inherited Members
Properties
- Color
The color, as an opaque 8-bit sRGB value.
- Hex
The color as a CSS hex triplet, e.g.
#3B6FD6.
- Lab
The color in CIELAB, the space the palette was computed in.
- Population
The number of source pixels attributed to this color.
- Share
The fraction (0 to 1) of the image's opaque pixels attributed to this color. The shares of a palette sum to at most 1; the remainder went to colors too small to list.
- Term
The basic color term that names this color ("blue", "brown", ...).