Exemplo n.º 1
0
 /// <summary>
 /// Returns true when the supplied file name is supported based on the extension of the file.
 /// </summary>
 /// <param name="file">The file to check.</param>
 /// <returns>True when the supplied file name is supported based on the extension of the file.</returns>
 /// <returns>True when the image could be compressed otherwise false.</returns>
 public bool IsSupported(FileInfo file)
 {
     return(IsSupported(MagickFormatInfo.Create(file)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns the format information of the specified format based on the extension of the
 /// file. If that fails the format will be determined by 'pinging' the file.
 /// </summary>
 /// <param name="fileName">The name of the file to get the format for.</param>
 /// <returns>The format information.</returns>
 public static IMagickFormatInfo GetFormatInformation(string fileName)
 => MagickFormatInfo.Create(fileName);
Exemplo n.º 3
0
 /// <summary>
 /// Returns true when the supplied file name is supported based on the extension of the file.
 /// </summary>
 /// <param name="fileName">The name of the file to check.</param>
 /// <returns>True when the supplied file name is supported based on the extension of the file.</returns>
 public bool IsSupported(string fileName)
 {
     return(IsSupported(MagickFormatInfo.Create(fileName)));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Returns the format information of the specified format based on the extension of the file.
 /// </summary>
 /// <param name="file">The file to get the format for.</param>
 /// <returns>The format information.</returns>
 public static IMagickFormatInfo GetFormatInformation(FileInfo file)
 => MagickFormatInfo.Create(file);
Exemplo n.º 5
0
 /// <summary>
 /// Returns the format information of the specified format.
 /// </summary>
 /// <param name="format">The image format.</param>
 /// <returns>The format information.</returns>
 public static IMagickFormatInfo GetFormatInformation(MagickFormat format)
 => MagickFormatInfo.Create(format);
Exemplo n.º 6
0
 /// <summary>
 /// Returns the format information of the specified format.
 /// </summary>
 /// <param name="format">The image format.</param>
 /// <returns>The format information.</returns>
 public static MagickFormatInfo GetFormatInformation(MagickFormat format)
 {
     return(MagickFormatInfo.Create(format));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Returns the format information of the specified format based on the extension of the
 /// file. If that fails the format will be determined by 'pinging' the file.
 /// </summary>
 /// <param name="fileName">The name of the file to get the format for.</param>
 /// <returns>The format information.</returns>
 public static MagickFormatInfo GetFormatInformation(string fileName)
 {
     return(MagickFormatInfo.Create(fileName));
 }
Exemplo n.º 8
0
 /// <summary>
 /// Returns the format information of the specified format based on the extension of the file.
 /// </summary>
 /// <param name="file">The file to get the format for.</param>
 /// <returns>The format information.</returns>
 public static MagickFormatInfo GetFormatInformation(FileInfo file)
 {
     return(MagickFormatInfo.Create(file));
 }
Exemplo n.º 9
0
 /// <summary>
 /// Returns the format information. The header of the image in the array of bytes is used to
 /// determine the format.
 /// </summary>
 /// <param name="data">The array of bytes to read the image header from.</param>
 /// <returns>The format information.</returns>
 public static IMagickFormatInfo?GetFormatInformation(byte[] data)
 => MagickFormatInfo.Create(data);
Exemplo n.º 10
0
 ///<summary>
 /// Returns the format information of the specified format.
 ///</summary>
 ///<param name="format">The image format.</param>
 public static MagickFormatInfo GetFormatInformation(MagickFormat format)
 {
     return(MagickFormatInfo.Create(Wrapper.MagickNET.GetFormatInformation(format)));
 }
Exemplo n.º 11
0
 /// <summary>
 /// Returns true when the supplied file name is supported based on the extension of the file.
 /// </summary>
 /// <param name="fileName">The name of the file to check.</param>
 /// <returns>True when the supplied file name is supported based on the extension of the file.</returns>
 public bool IsSupported(string fileName) => IsSupported(MagickFormatInfo.Create(fileName));
Exemplo n.º 12
0
 /// <summary>
 /// Returns true when the supplied file name is supported based on the extension of the file.
 /// </summary>
 /// <param name="file">The file to check.</param>
 /// <returns>True when the supplied file name is supported based on the extension of the file.</returns>
 /// <returns>True when the image could be compressed otherwise false.</returns>
 public bool IsSupported(FileInfo file) => IsSupported(MagickFormatInfo.Create(file));