Class DecoderOptions
Provides general configuration options for decoding image formats.
Namespace: SixLabors.ImageSharp.Formats
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class DecoderOptions : object
Properties
| Improve this Doc View SourceConfiguration
Gets a custom configuration instance to be used by the image processing pipeline.
Declaration
public Configuration Configuration { get; set; }
Property Value
Type | Description |
---|---|
Configuration |
MaxFrames
Gets the maximum number of image frames to decode, inclusive.
Declaration
public uint MaxFrames { get; set; }
Property Value
Type | Description |
---|---|
UInt32 |
Sampler
Gets the sampler to use when resizing during decoding.
Declaration
public IResampler Sampler { get; set; }
Property Value
Type | Description |
---|---|
IResampler |
SkipMetadata
Gets a value indicating whether to ignore encoded metadata when decoding.
Declaration
public bool SkipMetadata { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
TargetSize
Gets the target size to decode the image into. Scaling should use an operation equivalent to Max.
Declaration
public Size? TargetSize { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Size> |