public static void IsSameLooking(Slide expSlide, Slide actualSlide, double similarityTolerance = 0.95) { int hashCode = DateTime.Now.GetHashCode(); actualSlide.Export(PathUtil.GetTempPath("actualSlide" + hashCode + ".png"), "PNG"); expSlide.Export(PathUtil.GetTempPath("expSlide" + hashCode + ".png"), "PNG"); IsSameLooking("expSlide" + hashCode + ".png", "actualSlide" + hashCode + ".png", similarityTolerance); }
public static void IsSameLooking(Slide expSlide, Slide actualSlide) { var hashCode = DateTime.Now.GetHashCode(); actualSlide.Export(PathUtil.GetTempPath("actualSlide" + hashCode), "PNG"); expSlide.Export(PathUtil.GetTempPath("expSlide" + hashCode), "PNG"); IsSameLooking("expSlide" + hashCode, "actualSlide" + hashCode); }
public static void IsSameLooking(string expSlideImage, string actualSlideImage, double similarityTolerance = 0.95) { IsSameLooking(new FileInfo(PathUtil.GetTempPath(expSlideImage)), new FileInfo(PathUtil.GetTempPath(actualSlideImage)), similarityTolerance); }
public static void IsSameLooking(string expSlideImage, string actualSlideImage) { IsSameLooking(new FileInfo(PathUtil.GetTempPath(expSlideImage)), new FileInfo(PathUtil.GetTempPath(actualSlideImage))); }