Class PsdReaderOptions
Options for reading PSD and PSB, on top of the general ReaderOptions.
public sealed record PsdReaderOptions : ReaderOptions, IEquatable<ReaderOptions>, IEquatable<PsdReaderOptions>
- Inheritance
-
PsdReaderOptions
- Implements
- Inherited Members
Examples
// Load gives the composite Photoshop stored, or the layers flattened when the file has none. Ask for one or the other.
using Raster flattened = Raster.Load("layered.psd", EgamiContext.Default, new PsdReaderOptions { Composite = PsdComposite.Flatten });
using Raster stored = Raster.Load("layered.psd", EgamiContext.Default, new PsdReaderOptions { Composite = PsdComposite.Stored });
Properties
Composite
Gets which image Load, Probe and the row readers give: by default the stored composite, or the layers flattened when the
file has no real one. Flattening reads the layers one at a time, as they come in the file; Lab files blend in Lab and
give sRGB. Bitmap, indexed and multichannel files always give the stored composite; asked to flatten, with the
Psd.FlattenUnsupported warning.
public PsdComposite Composite { get; init; }
Property Value
Exceptions
- ArgumentOutOfRangeException
The value is not defined.
Default
Gets the default options.
public static PsdReaderOptions Default { get; }