AForge.Imaging.Formats.PNMCodec.DecodeSingleFrame C# (CSharp) Метод

DecodeSingleFrame() публичный Метод

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.
Результат System.Drawing.Bitmap
        public Bitmap DecodeSingleFrame( Stream stream )
        {
            PNMImageInfo imageInfo = ReadHeader( stream );

            return ReadImageFrame( stream, imageInfo );
        }