Table of Contents

Class DecoderOptions

Namespace
SixLabors.ImageSharp.Formats
Assembly
SixLabors.ImageSharp.dll

Provides general configuration options for decoding image formats.

public sealed class DecoderOptions
Inheritance
DecoderOptions
Inherited Members

Constructors

DecoderOptions()

public DecoderOptions()

Properties

Configuration

Gets a custom configuration instance to be used by the image processing pipeline.

public Configuration Configuration { get; init; }

Property Value

Configuration

MaxFrames

Gets the maximum number of image frames to decode, inclusive.

public uint MaxFrames { get; init; }

Property Value

uint

Sampler

Gets the sampler to use when resizing during decoding.

public IResampler Sampler { get; init; }

Property Value

IResampler

SkipMetadata

Gets a value indicating whether to ignore encoded metadata when decoding.

public bool SkipMetadata { get; init; }

Property Value

bool

TargetSize

Gets the target size to decode the image into. Scaling should use an operation equivalent to Max.

public Size? TargetSize { get; init; }

Property Value

Size?