Enum Jpeg2000Components
What a JPEG 2000 image's pixels are made from.
public enum Jpeg2000Components
Fields
Color = 0Color: palettes applied, channels ordered and alpha found by the channel definitions, sYCC and CIELab converted to RGB; gray, RGB or CMYK, with alpha when there is one.
Raw = 1The codestream's components as stored, after its own component transform: 1 as gray, 2 as gray with alpha, 3 as RGB and 4 as CMYK. Palettes and color spaces are not applied.
Examples
// A PDF that names its own color space wants the codestream's components as stored.
using Raster components = Raster.Load(jpxStream, options: new Jpeg2000ReaderOptions { Components = Jpeg2000Components.Raw });
// A quick preview of a layered file: only its first quality layer, chroma repeated as OpenJPEG does.
using Raster preview = Raster.Load("photo.jp2", options: new Jpeg2000ReaderOptions { MaxQualityLayers = 1, FastUpsampling = true });