Table of Contents

Enum IccProfileClass

Namespace
Egami.Colors
Assembly
Egami.dll

What an ICC profile describes, from its header's class field.

public enum IccProfileClass

Fields

Abstract = 6

An effect from PCS to PCS (abst). Egami does not convert with these.

ColorSpace = 5

A color space such as a working space (spac).

A link from one device space straight to another (link). Egami does not convert with these.

Display = 2

A display (mntr); most RGB profiles in images.

Input = 1

An input device such as a camera or scanner (scnr).

NamedColor = 7

A list of named colors (nmcl). Egami does not convert with these.

Output = 3

An output device such as a printer (prtr); most CMYK profiles.

Unknown = 0

A class Egami does not know.

Examples

// IccData reads a profile's header and tags; it never throws, and says what was wrong with a damaged one.
IccData icc = IccData.Parse(bytes);
Console.WriteLine($"{icc.Description}: version {icc.Version}, {icc.ProfileClass}, {icc.DataSpace} to {icc.ConnectionSpace}, damaged: {icc.IsDamaged}");
foreach (IccTag tag in icc.Tags)
{
    Console.WriteLine($"  {tag.Signature} ({tag.Type}), {tag.Data.Length} bytes");
}

// ColorProfile.FromIcc makes an encoding from it: a matrix profile gets its primaries and curve, so an ICC profile written
// for Display P3 is equivalent to the built-in.
ColorProfile profile = ColorProfile.FromIcc(icc);
bool isP3 = profile.IsEquivalentTo(ColorProfile.DisplayP3);