GetFormatInformation() public static method

Returns the format information of the specified format based on the extension of the file.
public static GetFormatInformation ( FileInfo file ) : MagickFormatInfo
file System.IO.FileInfo The file to get the format for.
return MagickFormatInfo
Example #1
0
 ///<summary>
 /// Returns the format information of the specified format.
 ///</summary>
 ///<param name="format">The image format.</param>
 public static MagickFormatInfo Create(MagickFormat format)
 {
     return(MagickNET.GetFormatInformation(format));
 }
Example #2
0
 ///<summary>
 /// Returns the format information. The extension of the supplied file is used to determine
 /// the format.
 ///</summary>
 /// <param name="file">The file to check.</param>
 public static MagickFormatInfo Create(FileInfo file)
 {
     return(MagickNET.GetFormatInformation(file));
 }
Example #3
0
        private static MagickFormat GetModule(MagickFormat format)
        {
            MagickFormatInfo formatInfo = MagickNET.GetFormatInformation(format);

            return(formatInfo.Module);
        }