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
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
        private static MagickFormat GetModule(MagickFormat format)
        {
            MagickFormatInfo formatInfo = MagickNET.GetFormatInformation(format);

            return(formatInfo.Module);
        }