Table of Contents

Enum ColorSpace

Namespace
LMKit.Graphics.Primitives
Assembly
LM-Kit.NET.dll

How colour samples are organized: in a file, in an ICC profile's device side, or as the space an encoder is asked to write. The values mirror the imaging runtime's lmkit_color_space so a file's facts and a profile's facts speak one vocabulary.

public enum ColorSpace

Fields

Unknown = 0

The container does not state how its samples are organized.

Gray = 1

A single luminance channel (optionally with alpha).

Rgb = 2

Red, green and blue (optionally with alpha).

Indexed = 3

Palette-mapped samples (an index per pixel into a colour table).

YCbCr = 4

Luma plus two chroma channels, the coding space of most JPEGs.

Cmyk = 5

Cyan, magenta, yellow and black inks (a press file).

Ycck = 6

YCbCr-coded CMY plus a black channel, Adobe's CMYK JPEG coding.

Lab = 7

CIE Lab*.

Examples

using LMKit.Graphics.Primitives;
using LMKit.Inspection;

FileInspection inspection = FileInspector.Inspect("press.jpg");
if (inspection.Image?.ColorSpaceKind == ColorSpace.Cmyk)
{
    Console.WriteLine("Four-ink JPEG (press file).");
}
Share