Table of Contents

Class DpxReaderOptions

Namespace
Egami.Formats.Extended.Dpx
Assembly
Egami.Formats.Extended.dll

Options for reading DPX and Cineon.

public sealed record DpxReaderOptions : ReaderOptions, IEquatable<ReaderOptions>, IEquatable<DpxReaderOptions>
Inheritance
DpxReaderOptions
Implements
Inherited Members

Examples

// A printing-density (log) scan, converted to scene-linear light with Kodak's conversion:
// code 685 is 1.0 (white) and code 95 is 0.0 (black). Linear and video DPX files load unchanged.
using Raster<RgbF32> linear = Raster.Load<RgbF32>("scan.cin", context, new DpxReaderOptions { Linearize = true });

Properties

Element

Gets the DPX image element Load returns, from 0, or null (the default) for the first.

public int? Element { get; init; }

Property Value

int?

Exceptions

ArgumentOutOfRangeException

The value is negative.

Linearize

Gets whether printing-density (log) code values load as linear light, with Kodak's conversion (reference black 95, reference white 685, 0.002 density a code value, negative gamma 0.6): black is 0, white 1, highlights above 1 and codes below black under 0, into RgbF32, RgbaF32 or GrayF32. Defaults to false: the stored code values, scaled to the pixel's full range. Every Cineon file is log; DPX elements are when their transfer is printing density or logarithmic, and others load as stored.

public bool Linearize { get; init; }

Property Value

bool