13 private readonly
Color[] _palette;
29 if (colors ==
null || colors.Length == 0)
31 throw new IcvNotPossibleException(
32 "The given array is empty or null. Please provide an array with at least one element.");
75 _palette = constant
switch
77 ColorPaletteConstant.Colored3 =>
new Color[]
83 ColorPaletteConstant.Colored6 =>
new Color[]
102 public new (
int r,
int g,
int b)
RGB
106 (ushort
r, ushort
g, ushort b) rgb = base.RGB;
108 return (rgb.r, rgb.g, rgb.b);
116 private void NextColor()
118 _index = (_index + 1) % _palette.Length;
Occurs when a requested operation is not implemented or supported (e.g., exporting to an unsupported ...
Class holding color codes.
ulong ColorCode
The color code.
ushort r
The color as a tuple of red, green and blue values.
ushort ushort ushort b RGB
Class holding a color palette (a set of colors).
ColorPalette(ColorPaletteConstant constant, byte numBitsPerPixel=8)
Creates a color palette from a color palette constant.
ColorPalette(params Color[] colors)
Creates a color palette from the given colors.
ColorConstant
Enum class for color constants.
ColorPaletteConstant
Enum class for color palette constants.