Table of Contents

Class Jbig2Details

Namespace
Egami.Formats.Jbig2
Assembly
Egami.dll

Details only JBIG2 has, kept per page in FormatDetails.

public sealed class Jbig2Details : FormatDetails
Inheritance
Jbig2Details
Inherited Members

Examples

using Raster page = Raster.Load("book.jb2");
var details = (Jbig2Details)page.Metadata.FormatDetails!;
Console.WriteLine($"Page {details.PageIndex}, {details.Organization}, regions {details.Regions}");
Console.WriteLine($"Default pixel {details.DefaultPixel}, combined by {details.CombinationOperator}, lossless {details.Lossless}");

Properties

CombinationOperator

Gets or sets the page's default combination operator.

public Jbig2CombinationOperator CombinationOperator { get; set; }

Property Value

Jbig2CombinationOperator

Comments

Gets the comments of the stream's and the page's comment extension segments, as name and value pairs.

public IList<KeyValuePair<string, string>> Comments { get; }

Property Value

IList<KeyValuePair<string, string>>

DefaultPixel

Gets or sets the page's pixel before any region is drawn: 0 white or 1 black.

public int DefaultPixel { get; set; }

Property Value

int

Lossless

Gets or sets whether the page information says the page is eventually lossless.

public bool Lossless { get; set; }

Property Value

bool

MaxStripeSize

Gets or sets the most rows a stripe may have, or 0 when the page is not striped.

public int MaxStripeSize { get; set; }

Property Value

int

Organization

Gets or sets how the stream lays out its segments.

public Jbig2Organization Organization { get; set; }

Property Value

Jbig2Organization

PageIndex

Gets or sets the page's index in the stream, counting from 0.

public int PageIndex { get; set; }

Property Value

int

Regions

Gets or sets the kinds of region the page is made of.

public Jbig2RegionKinds Regions { get; set; }

Property Value

Jbig2RegionKinds

Striped

Gets or sets whether the page is coded in stripes (end of stripe segments).

public bool Striped { get; set; }

Property Value

bool

UsesGlobals

Gets or sets whether the page refers to dictionaries in Globals.

public bool UsesGlobals { get; set; }

Property Value

bool

Methods

Copy()

Returns a deep copy.

public override FormatDetails Copy()

Returns

FormatDetails

The copy.