Information
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^)

 

Compares two images based on the tolerance value for whole image.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public:
static bool Compare(
	Image^ actualImage,
	Image^ expectedImage,
	ColorDifference^ argbTolerance
)

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.

Return Value

Type: System::Boolean

True if the two images differ by an amount that's less than the specified tolerance.

Return to top
Show: