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 = 0The container does not state how its samples are organized.
Gray = 1A single luminance channel (optionally with alpha).
Rgb = 2Red, green and blue (optionally with alpha).
Indexed = 3Palette-mapped samples (an index per pixel into a colour table).
YCbCr = 4Luma plus two chroma channels, the coding space of most JPEGs.
Cmyk = 5Cyan, magenta, yellow and black inks (a press file).
Ycck = 6YCbCr-coded CMY plus a black channel, Adobe's CMYK JPEG coding.
Lab = 7CIE 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).");
}