Exemple #1
0
 public static bool CheckImageFormat(string fileName, ImageFormat imageformat)
 {
     return(ImageUtil.CheckImageFormat(Image.FromFile(fileName), imageformat));
 }
Exemple #2
0
 public static bool CheckImageFormat(Stream stream, ImageFormat imageformat)
 {
     return(ImageUtil.CheckImageFormat(Image.FromStream(stream), imageformat));
 }