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
Methods
CreateDefaultSpecializedOptions(DecoderOptions)
protected override WebpDecoderOptions CreateDefaultSpecializedOptions(DecoderOptions options)
Parameters
optionsDecoderOptions
Returns
Decode(DecoderOptions, Stream, CancellationToken)
protected override Image Decode(DecoderOptions options, Stream stream, CancellationToken cancellationToken)
Parameters
optionsDecoderOptionsstreamStreamcancellationTokenCancellationToken
Returns
Decode(WebpDecoderOptions, Stream, CancellationToken)
protected override Image Decode(WebpDecoderOptions options, Stream stream, CancellationToken cancellationToken)
Parameters
optionsWebpDecoderOptionsstreamStreamcancellationTokenCancellationToken
Returns
Decode<TPixel>(WebpDecoderOptions, Stream, CancellationToken)
protected override Image<TPixel> Decode<TPixel>(WebpDecoderOptions options, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>
Parameters
optionsWebpDecoderOptionsstreamStreamcancellationTokenCancellationToken
Returns
- Image<TPixel>
Type Parameters
TPixel
Identify(DecoderOptions, Stream, CancellationToken)
protected override ImageInfo Identify(DecoderOptions options, Stream stream, CancellationToken cancellationToken)
Parameters
optionsDecoderOptionsstreamStreamcancellationTokenCancellationToken