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
options
DecoderOptions
Returns
Decode(BmpDecoderOptions, Stream, CancellationToken)
protected override Image Decode(BmpDecoderOptions options, Stream stream, CancellationToken cancellationToken)
Parameters
options
BmpDecoderOptionsstream
StreamcancellationToken
CancellationToken
Returns
Decode<TPixel>(BmpDecoderOptions, Stream, CancellationToken)
protected override Image<TPixel> Decode<TPixel>(BmpDecoderOptions options, Stream stream, CancellationToken cancellationToken) where TPixel : unmanaged, IPixel<TPixel>
Parameters
options
BmpDecoderOptionsstream
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