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

Properties

ColorProfileHandling

Gets a value that controls how ICC profiles are handled during decode.

public ColorProfileHandling ColorProfileHandling { get; init; }

Property Value

ColorProfileHandling

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

SegmentIntegrityHandling

Gets the segment error handling strategy to use during decoding.

public SegmentIntegrityHandling SegmentIntegrityHandling { get; init; }

Property Value

SegmentIntegrityHandling

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?