Class Jpeg2000ReaderOptions
Options for reading JPEG 2000.
public sealed record Jpeg2000ReaderOptions : ReaderOptions, IEquatable<ReaderOptions>, IEquatable<Jpeg2000ReaderOptions>
- Inheritance
-
Jpeg2000ReaderOptions
- Implements
- Inherited Members
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 });
Properties
Components
Gets what the pixels are: Color (the default) applies palettes, channel definitions and color spaces; Raw returns the codestream's components as stored, for a PDF that names its own color space.
public Jpeg2000Components Components { get; init; }
Property Value
FastUpsampling
Gets whether subsampled chroma is repeated over the pixels it covers, as OpenJPEG does, instead of interpolated at its siting (the default).
public bool FastUpsampling { get; init; }
Property Value
MaxQualityLayers
Gets how many quality layers to decode, for a quick preview of a layered file, or null (the default) for all of them.
public int? MaxQualityLayers { get; init; }
Property Value
- int?