Table of Contents

Enum Jpeg2000ChannelType

Namespace
Egami.Formats.Jpeg2000
Assembly
Egami.dll

What a JPEG 2000 channel definition (cdef) says a channel is.

public enum Jpeg2000ChannelType

Fields

Color = 0

A color channel.

Opacity = 1

Opacity (alpha).

PremultipliedOpacity = 2

Premultiplied opacity; Egami loads the image with straight alpha.

Unspecified = 3

Unspecified.

Examples

using Raster image = Raster.Load("photo.jp2");
var details = (Jpeg2000Details)image.Metadata.FormatDetails!;
Console.WriteLine($"{details.Container}, {(details.Reversible ? "lossless 5/3" : "lossy 9/7")}, {details.DecompositionLevels} levels");
Console.WriteLine($"{details.QualityLayers} layers in {details.ProgressionOrder} order, {details.TileCount} tiles, {details.ColorSpace}");
foreach (Jpeg2000Component component in details.Components)
{
    Console.WriteLine($"{component.Precision} bits{(component.IsSigned ? " signed" : "")}, sampled every {component.SubsamplingX}×{component.SubsamplingY}");
}

foreach (Jpeg2000Channel channel in details.Channels)
{
    Console.WriteLine($"Channel {channel.Channel}: {channel.Type} for color {channel.Association}");
}