Table of Contents

Class ExrDetails

Namespace
Egami.Formats.Exr
Assembly
Egami.dll

Details only OpenEXR has, kept in FormatDetails.

public sealed class ExrDetails : FormatDetails
Inheritance
ExrDetails
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

DataWindow

Gets the data window of the part read.

public Rect DataWindow { get; }

Property Value

Rect

DisplayWindow

Gets the display window of the part read.

public Rect DisplayWindow { get; }

Property Value

Rect

Layer

Gets or sets the layer the raster was read from: empty for the default layer.

public string Layer { get; set; }

Property Value

string

Part

Gets or sets the index of the part the raster was read from.

public int Part { get; set; }

Property Value

int

Parts

Gets or sets every part of the file.

public IReadOnlyList<ExrPart> Parts { get; set; }

Property Value

IReadOnlyList<ExrPart>

Window

Gets or sets the area the raster covers, in the file's pixel coordinates: the data window, or the display window.

public Rect Window { get; set; }

Property Value

Rect

Methods

Copy()

Returns a deep copy.

public override FormatDetails Copy()

Returns

FormatDetails

The copy.