Enum ExrPartKind
How an OpenEXR part stores its pixels.
public enum ExrPartKind
Fields
DeepScanline = 2Deep scanlines: a varying number of samples a pixel. Egami reads the header but not the pixels.
DeepTiled = 3Deep tiles. Egami reads the header but not the pixels.
Scanline = 0Blocks of scanlines.
Tiled = 1Tiles, 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");