Table of Contents

Class JxlDetails

Namespace
Egami.Formats.Jxl
Assembly
Egami.dll

Details only JPEG XL has, kept in FormatDetails.

public sealed class JxlDetails : FormatDetails
Inheritance
JxlDetails
Inherited Members

Examples

// The headers alone: size, natural pixel type, orientation and frame count, without decoding any pixels.
RasterInfo info = Raster.Probe("duck.jxl");
bool isJxl = info.Format == JxlFormat.Info;
long bytes = info.EstimatedBytes;                       // what a full load would allocate

Properties

BitsPerSample

Gets or sets the bits a sample of the color channels has, as the file declares.

public int BitsPerSample { get; set; }

Property Value

int

ExponentBits

Gets or sets the exponent bits of floating-point samples, or 0 for integer samples.

public int ExponentBits { get; set; }

Property Value

int

ExtraChannels

Gets or sets the extra channels, in the file's order: alpha and black join the pixels, spot colors are rendered into them, and every one can be read alone with ReadExtraChannel(string, int, ReaderOptions?, EgamiContext?).

public IReadOnlyList<JxlExtraChannel> ExtraChannels { get; set; }

Property Value

IReadOnlyList<JxlExtraChannel>

HasJpegReconstruction

Gets or sets whether the file has a jbrd box, so the JPEG it was recompressed from can be given back byte for byte.

public bool HasJpegReconstruction { get; set; }

Property Value

bool

IsContainer

Gets or sets whether the file uses the box format of ISO/IEC 18181-2, rather than being a bare codestream.

public bool IsContainer { get; set; }

Property Value

bool

IsXybEncoded

Gets or sets whether the color channels are coded in XYB, which lossy files use; a lossless file keeps its own color space.

public bool IsXybEncoded { get; set; }

Property Value

bool

Jumbf

Gets or sets the contents of each jumb (JUMBF) box, such as C2PA manifests, kept as stored.

public IReadOnlyList<ReadOnlyMemory<byte>> Jumbf { get; set; }

Property Value

IReadOnlyList<ReadOnlyMemory<byte>>

Level

Gets or sets the conformance level the jxll box declares (5 or 10), or null when there is none (level 5 is meant then).

public int? Level { get; set; }

Property Value

int?

Methods

Copy()

Returns a deep copy.

public override FormatDetails Copy()

Returns

FormatDetails

The copy.