Accord.Imaging.Formats.ImageDecoder.DecodeFromFile C# (CSharp) Method

DecodeFromFile() public static method

Decode first frame for the specified file.

The method uses table of registered image decoders to find the one, which should be used for the specified file. If there is not appropriate decoder found, the method uses default .NET's image decoding routine (see System.Drawing.Image.FromFile( string )).

public static DecodeFromFile ( string fileName ) : Bitmap
fileName string File name to read image from.
return System.Drawing.Bitmap
        public static Bitmap DecodeFromFile(string fileName)
        {
            ImageInfo imageInfo = null;

            return DecodeFromFile(fileName, out imageInfo);
        }

Same methods

ImageDecoder::DecodeFromFile ( string fileName, ImageInfo &imageInfo ) : Bitmap