Table of Contents

Class PbmDecoder

Namespace
SixLabors.ImageSharp.Formats.Pbm
Assembly
SixLabors.ImageSharp.dll

Image decoder for reading PGM, PBM or PPM bitmaps from a stream. These images are from the family of PNM images.

  • PBMBlack and white images.
  • PGMGrayscale images.
  • PPMColor images, with RGB pixels.
The specification of these images is found at http://netpbm.sourceforge.net/doc/pnm.html.
public sealed class PbmDecoder : ImageDecoder, IImageDecoder
Inheritance
PbmDecoder
Implements
Inherited Members

Properties

Instance

Gets the shared instance.

public static PbmDecoder Instance { get; }

Property Value

PbmDecoder

Methods

Decode(DecoderOptions, Stream, CancellationToken)

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

Parameters

options DecoderOptions
stream Stream
cancellationToken CancellationToken

Returns

Image

Decode<TPixel>(DecoderOptions, Stream, CancellationToken)

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

Parameters

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