|
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
)
Public Function DecodeSingleFrame (
stream As Stream
) As Bitmap
Request Example
View SourceParameters
- stream
- Type: System.IOStream
Source stream, which contains encoded image.
Return Value
Type:
BitmapReturns decoded image frame.
Implements
IImageDecoderDecodeSingleFrame(Stream)Exceptions Exception | Condition |
---|
FormatException | Not a PNM image format. |
NotSupportedException | Format of the PNM image is not supported. |
ArgumentException | The stream contains invalid (broken) PNM image. |
See Also