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 Class

 

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

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.ImageComparer

public static class ImageComparer

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCompare(Image, Image)

Compares two images to check whether they are the same.

System_CAPS_pubmethodSystem_CAPS_staticCompare(Image, Image, ColorDifference)

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

System_CAPS_pubmethodSystem_CAPS_staticCompare(Image, Image, ColorDifference, Image)

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

System_CAPS_pubmethodSystem_CAPS_staticCompare(Image, Image, Image)

Compares two images to check whether they are the same, and calculates the difference between the two images as a diff image.

System_CAPS_pubmethodSystem_CAPS_staticCompare(Image, Image, List<ToleranceRectangle>)

Compares specific regions of two images by the area specified by tolerance rectangles.

Returns true if the image difference is within tolerance.

System_CAPS_pubmethodSystem_CAPS_staticCompare(Image, Image, List<ToleranceRectangle>, Image)

Compares specific regions of two images by the area specified by tolerance rectangles.

Returns true if the image difference is within tolerance, and computes the margin by which tolerance is missed as a diff image.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: