Class BmpDecoder
- Namespace
- SixLabors.ImageSharp.Formats.Bmp
- Assembly
- SixLabors.ImageSharp.dll
Image decoder for generating an image out of a Windows bitmap stream.
public sealed class BmpDecoder : SpecializedImageDecoder<BmpDecoderOptions>, ISpecializedImageDecoder<BmpDecoderOptions>, IImageDecoder
- Inheritance
-
BmpDecoder
- Implements
- Inherited Members
Properties
Instance
Gets the shared instance.
public static BmpDecoder Instance { get; }
Property Value
Methods
CreateDefaultSpecializedOptions(DecoderOptions)
protected override BmpDecoderOptions CreateDefaultSpecializedOptions(DecoderOptions options)
Parameters
optionsDecoderOptions
Returns
Decode(BmpDecoderOptions, Stream, CancellationToken)
protected override Image Decode(BmpDecoderOptions options, Stream stream, CancellationToken cancellationToken)
Parameters
optionsBmpDecoderOptionsstreamStreamcancellationTokenCancellationToken
Returns
Decode<TPixel>(BmpDecoderOptions, Stream, CancellationToken)
protected override Image<TPixel> Decode<TPixel>(BmpDecoderOptions options, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>
Parameters
optionsBmpDecoderOptionsstreamStreamcancellationTokenCancellationToken
Returns
- Image<TPixel>
Type Parameters
TPixel
Identify(DecoderOptions, Stream, CancellationToken)
protected override ImageInfo Identify(DecoderOptions options, Stream stream, CancellationToken cancellationToken)
Parameters
optionsDecoderOptionsstreamStreamcancellationTokenCancellationToken