Table of Contents

Class Jpeg2000Format

Namespace
Egami.Formats.Jpeg2000
Assembly
Egami.dll

The JPEG 2000 format (ITU-T T.800, Part 1), read only, registered in Default: JP2 and JPX files and raw codestreams (J2K, J2C), High-Throughput JPEG 2000 (ITU-T T.814, Part 15) in JPH files, raw codestreams (JHC) and JP2 files, including the JPX streams a PDF holds, which load with plain Load(ReadOnlyMemory<byte>, EgamiContext?, ReaderOptions?).

public static class Jpeg2000Format
Inheritance
Jpeg2000Format
Inherited Members

Examples

// JP2, JPX and raw codestreams are detected like any other format, so is a PDF's JPXDecode stream.
using Raster photo = Raster.Load("photo.jp2");

// A thumbnail drops whole wavelet levels instead of decoding at full size, and a region decodes only the code-blocks
// it needs.
using Raster thumbnail = Raster.Load("photo.jp2", options: new ReaderOptions { MinimumSize = new Size(24, 18) });
using Raster corner = Raster.Load("photo.jp2", options: new ReaderOptions { Region = new Rect(0, 0, 32, 32) });

Properties

Info

Gets the format's registration: name, MIME types, extensions, signature and reader. It has no writer.

public static FormatInfo Info { get; }

Property Value

FormatInfo