Table of Contents

Class ExrWriterOptions

Namespace
Egami.Formats.Exr
Assembly
Egami.dll

Options for writing OpenEXR: one scanline part, half samples for half pixel types and float otherwise.

public sealed class ExrWriterOptions : WriterOptions
Inheritance
ExrWriterOptions
Inherited Members

Examples

// Half-float RGBA, ZIP-compressed, by default; a sRGB or other non-linear raster is linearized first.
beauty.Save("copy.exr");
beauty.Save("float.exr", new ExrWriterOptions { Compression = ExrCompression.Piz, PixelType = ExrPixelType.Float });

Properties

Compression

Gets the compression: None, Rle, Zips, Zip (the default) or Piz.

public ExrCompression Compression { get; init; }

Property Value

ExrCompression

Default

Gets the default options.

public static ExrWriterOptions Default { get; }

Property Value

ExrWriterOptions

PixelType

Gets the sample type to write, or null (the default) to choose by pixel type: half for RgbaF16 and 8 or 16-bit types, float for float types.

public ExrPixelType? PixelType { get; init; }

Property Value

ExrPixelType?