public static int CheckHash(Image img, string expectedHash, ref int success) { HashImageFilter hasher = new HashImageFilter(); string actualHash = hasher.Execute(img); if (actualHash != expectedHash) { success = ExitFailure; Console.WriteLine("Expected hash: \"{0}\" actual hash: \"{1}\".", expectedHash, actualHash ); } return 0; }
public static int CheckHash(Image img, string expectedHash, ref int success) { HashImageFilter hasher = new HashImageFilter(); string actualHash = hasher.Execute(img); if (actualHash != expectedHash) { success = ExitFailure; Console.WriteLine("Expected hash: \"{0}\" actual hash: \"{1}\".", expectedHash, actualHash); } return(0); }