Enum ColorSpaceHint
What the raster's pixel values mean, as far as the file said.
public enum ColorSpaceHint
Fields
EmbeddedIcc = 4Described by the embedded IccProfile, which Egami keeps but does not apply.
Gamma = 3A plain gamma curve, given by Gamma.
Linear = 2Linear light.
Srgb = 1sRGB.
Unknown = 0The file did not say. Egami treats the pixels as sRGB.
Examples
using Raster image = Raster.Load("duck.png");
string note = image.Metadata.ColorSpace switch
{
ColorSpaceHint.Srgb or ColorSpaceHint.Unknown => "sRGB: shown as is",
ColorSpaceHint.Linear => "linear light: encode before showing",
ColorSpaceHint.Gamma => "a file gamma other than sRGB",
ColorSpaceHint.EmbeddedIcc => "an ICC profile describes the colors",
_ => "unknown",
};