public bool PDCompare () { Bitmap ri = GetReferenceImage(TestName); if (ri == null) return true; double error = PDComparer.Compare(ri, _bitmap); return error <= DEFAULT_IMAGE_TOLERANCE; }
public bool PDCompare (double tolerance) { Bitmap ri = GetReferenceImage(TestName); if (ri == null) return true; double error = PDComparer.Compare(ri, _bitmap); return error <= tolerance; }