Decode first frame of PNM image.

Namespace:  AForge.Imaging.Formats
Assembly:  AForge.Imaging.Formats (in AForge.Imaging.Formats.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public Bitmap DecodeSingleFrame(
	Stream stream
)

Parameters

stream
Type: System.IO..::.Stream
Source stream, which contains encoded image.

Return Value

Returns decoded image frame.

Implements

IImageDecoder..::.DecodeSingleFrame(Stream)

Exceptions

ExceptionCondition
System..::.FormatExceptionNot a PNM image format.
System..::.NotSupportedExceptionFormat of the PNM image is not supported.
System..::.ArgumentExceptionThe stream contains invalid (broken) PNM image.

See Also