The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ImageComparer::Compare Method (Image^, Image^, ColorDifference^, Image^)
Compares two images based on the tolerance value for whole image.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
public: static bool Compare( Image^ actualImage, Image^ expectedImage, ColorDifference^ argbTolerance, [OutAttribute] Image^% diffImage )
Parameters
- actualImage
-
Type:
System.Drawing::Image^
Actual image.
- expectedImage
-
Type:
System.Drawing::Image^
Expected image.
- argbTolerance
-
Type:
Microsoft.VisualStudio.TestTools.UITesting::ColorDifference^
Maximum approved difference between argb of the two images.
- diffImage
-
Type:
System.Drawing::Image^
An image whose argb values represent a margin by which tolerance has been missed.
Return Value
Type: System::BooleanTrue if the two images differ by an amount that's less than the specified tolerance.
Show: