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