Accord.Imaging.Formats.PNMCodec.DecodeSingleFrame C# (CSharp) Method

DecodeSingleFrame() public method

Decode first frame of PNM image.
Not a PNM image format. Format of the PNM image is not supported. The stream contains invalid (broken) PNM image.
public DecodeSingleFrame ( Stream stream ) : Bitmap
stream Stream Source stream, which contains encoded image.
return System.Drawing.Bitmap
        public Bitmap DecodeSingleFrame(Stream stream)
        {
            PNMImageInfo imageInfo = ReadHeader(stream);

            return ReadImageFrame(stream, imageInfo);
        }