Table of Contents

Class Jbig2ReaderOptions

Namespace
Egami.Formats.Jbig2
Assembly
Egami.dll

Options for reading JBIG2.

public sealed record Jbig2ReaderOptions : ReaderOptions, IEquatable<ReaderOptions>, IEquatable<Jbig2ReaderOptions>
Inheritance
Jbig2ReaderOptions
Implements
Inherited Members

Examples

// A PDF's JBIG2Decode image has no file header, so name the format. Parse the JBIG2Globals stream once and share it:
// every image of the document that refers to it reuses its decoded symbols.
Jbig2Globals globals = Jbig2Globals.Parse(globalsStream);
using Raster image = Raster.Load(imageStream, Jbig2Format.Info, options: new Jbig2ReaderOptions { Globals = globals });

Properties

Globals

Gets the parsed globals stream (a PDF's JBIG2Globals) whose dictionaries the page's segments refer to, or null (the default) for none.

public Jbig2Globals? Globals { get; init; }

Property Value

Jbig2Globals

Page

Gets the page Load returns, by its index in the file, or null (the default) for the first.

public int? Page { get; init; }

Property Value

int?