Class ExrWriterOptions
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
public ExrCompression Compression { get; init; }
Property Value
Default
Gets the default options.
public static ExrWriterOptions Default { get; }
Property Value
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; }