Table of Contents

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

BmpDecoder

Methods

CreateDefaultSpecializedOptions(DecoderOptions)

protected override BmpDecoderOptions CreateDefaultSpecializedOptions(DecoderOptions options)

Parameters

options DecoderOptions

Returns

BmpDecoderOptions

Decode(BmpDecoderOptions, Stream, CancellationToken)

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

Parameters

options BmpDecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

Image

Decode<TPixel>(BmpDecoderOptions, Stream, CancellationToken)

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

Parameters

options BmpDecoderOptions
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