Table of Contents

Enum ExrPartKind

Namespace
Egami.Formats.Exr
Assembly
Egami.dll

How an OpenEXR part stores its pixels.

public enum ExrPartKind

Fields

DeepScanline = 2

Deep scanlines: a varying number of samples a pixel. Egami reads the header but not the pixels.

DeepTiled = 3

Deep tiles. Egami reads the header but not the pixels.

Scanline = 0

Blocks of scanlines.

Tiled = 1

Tiles, possibly at several resolution levels.

Examples

// The first part's RGBA channels as linear light, 1.0 reference white; other layers by name.
using Raster<RgbaF32> beauty = Raster.Load<RgbaF32>("render.exr");
var details = (ExrDetails)beauty.Metadata.FormatDetails!;
IReadOnlyList<string> layers = details.Parts[details.Part].Layers;       // "diffuse", "specular"
using Raster<RgbaF32> diffuse = Raster.Load<RgbaF32>("render.exr", options: new ExrReaderOptions { Layer = "diffuse" });

// Any one channel, such as depth or an object id, as 32-bit float.
using Raster<GrayF32> depth = ExrImage.ReadChannel("aov.exr", "Z");