Table of Contents

Enum ColorSpaceHint

Namespace
Egami.Metadata
Assembly
Egami.dll

What the raster's pixel values mean, as far as the file said.

public enum ColorSpaceHint

Fields

EmbeddedIcc = 4

Described by the embedded IccProfile, which Egami keeps but does not apply.

Gamma = 3

A plain gamma curve, given by Gamma.

Linear = 2

Linear light.

Srgb = 1

sRGB.

Unknown = 0

The 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",
};