Enum Jpeg2000ChannelType
What a JPEG 2000 channel definition (cdef) says a channel is.
public enum Jpeg2000ChannelType
Fields
Color = 0A color channel.
Opacity = 1Opacity (alpha).
PremultipliedOpacity = 2Premultiplied opacity; Egami loads the image with straight alpha.
Unspecified = 3Unspecified.
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}");
}