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