Table of Contents

Class ExrFormat

Namespace
Egami.Formats.Exr
Assembly
Egami.dll

The OpenEXR format, registered in Default.

public static class ExrFormat
Inheritance
ExrFormat
Inherited Members

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");

Properties

Info

Gets the format's registration: name, MIME type, extension, signature, reader and writer.

public static FormatInfo Info { get; }

Property Value

FormatInfo