PeachImage
PeachImage.Formats.Jpeg2000
Jpeg2000DecoderOptions Class
JPEG 2000-specific decode options. Raw codestreams and JP2 files are recognized by their signatures, so ordinary loads
need none; these options matter mostly to PDF JPXDecode streams, whose colour space comes from the PDF, not the image.
public sealed class Jpeg2000DecoderOptions : PeachImage.DecoderOptions
Inheritance System.Object → DecoderOptions → Jpeg2000DecoderOptions
| Properties | |
|---|---|
| IgnoreColorSpace | Ignore the JP2 colour specification, palette and channel definition boxes (and any sYCC to RGB conversion): the codestream’s components are returned as they are, one to Gray8, two to gray plus alpha in Rgba32, three to Rgb24 and four to Cmyk32 (or the 16-bit equivalents for deeper samples where one exists). Default false. |
| ReduceResolutionLevels | Decodes at a reduced resolution: each increment halves the width and height (a value of 1 gives half size). The value is clamped to the number of decomposition levels the image has. Default 0 (full size). It composes with ScaleDenominator / TargetSize, which are applied on top of it (the scale is relative to the already reduced size) by dropping log2(N) further levels; if the codestream lacks them the scale is not applied natively and the result is resampled to size instead. |