Table of Contents

Class WebpDecoder

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

Image decoder for generating an image out of a webp stream.

public sealed class WebpDecoder : SpecializedImageDecoder<WebpDecoderOptions>, ISpecializedImageDecoder<WebpDecoderOptions>, IImageDecoder
Inheritance
WebpDecoder
Implements
Inherited Members

Properties

Instance

Gets the shared instance.

public static WebpDecoder Instance { get; }

Property Value

WebpDecoder

Methods

CreateDefaultSpecializedOptions(DecoderOptions)

protected override WebpDecoderOptions CreateDefaultSpecializedOptions(DecoderOptions options)

Parameters

options DecoderOptions

Returns

WebpDecoderOptions

Decode(DecoderOptions, Stream, CancellationToken)

protected override Image Decode(DecoderOptions options, Stream stream, CancellationToken cancellationToken)

Parameters

options DecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

Image

Decode(WebpDecoderOptions, Stream, CancellationToken)

protected override Image Decode(WebpDecoderOptions options, Stream stream, CancellationToken cancellationToken)

Parameters

options WebpDecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

Image

Decode<TPixel>(WebpDecoderOptions, Stream, CancellationToken)

protected override Image<TPixel> Decode<TPixel>(WebpDecoderOptions options, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>

Parameters

options WebpDecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

Image<TPixel>

Type Parameters

TPixel

Identify(DecoderOptions, Stream, CancellationToken)

protected override ImageInfo Identify(DecoderOptions options, Stream stream, CancellationToken cancellationToken)

Parameters

options DecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

ImageInfo