Class ColorProfileReader
- Namespace
- EncDotNet.S100.Portrayals
- Assembly
- EncDotNet.S100.Portrayals.dll
Reads an S-100 color profile XML file and produces a ColorPalette.
public static class ColorProfileReader
- Inheritance
-
ColorProfileReader
- Inherited Members
Remarks
Supports two XML formats:
- Flat format
<colorProfile><color token="NODTA"><sRGB red="163" green="180" blue="183"/></color>...</colorProfile> - S-100 palette format
<colorProfile><palette name="Day"><item token="NODTA"><srgb><red>147</red>...</srgb></item>...</palette>...</colorProfile>
Methods
Read(Stream, string)
Reads a color profile from a stream and returns a ColorPalette.
public static ColorPalette Read(Stream stream, string paletteName)
Parameters
streamStreamThe stream containing the color profile XML.
paletteNamestringThe palette name (e.g. "Day", "Dusk", "Night").