Click or drag to resize
Accord.NET (logo)

PNMCodecDecodeSingleFrame Method

Decode first frame of PNM image.

Namespace:  Accord.Imaging.Formats
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public Bitmap DecodeSingleFrame(
	Stream stream
)
Request Example View Source

Parameters

stream
Type: System.IOStream
Source stream, which contains encoded image.

Return Value

Type: Bitmap
Returns decoded image frame.

Implements

IImageDecoderDecodeSingleFrame(Stream)
Exceptions
ExceptionCondition
FormatExceptionNot a PNM image format.
NotSupportedExceptionFormat of the PNM image is not supported.
ArgumentExceptionThe stream contains invalid (broken) PNM image.
See Also