PeachDrawing.Text
PeachDrawing.Text.Outlines
ColorPalette Class
The colours a colour font’s glyphs are painted with: one or more palettes of the same number of entries (the CPAL
table). A colour glyph refers to an entry by index, and the palette in use chooses the colours.
public sealed class ColorPalette
Inheritance System.Object → ColorPalette
| Properties | |
|---|---|
| EntriesPerPalette | How many colours each palette has. |
| PaletteCount | How many palettes the font has. |
| Methods | |
|---|---|
| FirstDarkPalette() | The index of the first palette that is flagged as usable on a dark background, or null when none is. |
| FirstLightPalette() | The index of the first palette that is flagged as usable on a light background, or null when none is. |
| TryGetColor(int, int, Color) | Looks up one colour. |