Enum ColorModel
Whether a color encoding has three RGB channels, one gray channel, four CMYK inks, or the inks of an n-colour press.
public enum ColorModel
Fields
Cmyk = 2Cyan, magenta, yellow and black inks.
Gray = 1One gray channel.
NColor = 3Two to fifteen inks of an n-colour output profile (ICC's 2CLR to FCLR), such as a hexachrome or seven-colour press: ChannelCount says how many, and ColorantNames names them. No pixel type holds them: convert with Apply(ReadOnlySpan<float>, Span<float>) or draw into an InkRaster.
Rgb = 0Red, green and blue.
Examples
// A ColorProfile says what a raster's numbers mean. The built-ins cover the common encodings...
ColorProfile web = ColorProfile.Srgb;
ColorProfile wide = ColorProfile.DisplayP3;
ColorProfile hdr = ColorProfile.Rec2100Pq;
// ...and Create makes any other RGB encoding from primaries and a transfer function.
ColorProfile camera = ColorProfile.Create(ColorPrimaries.AdobeRgb, TransferFunction.Gamma(2.2), "Camera RGB");
Console.WriteLine($"{camera.Name}: {camera.Model}, HDR {camera.IsHdr}, same as Adobe RGB: {camera.IsEquivalentTo(ColorProfile.AdobeRgb)}");