ImageComparer Class
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Compare(Image^, Image^) | Compares two images to check whether they are the same. |
![]() ![]() | Compare(Image^, Image^, ColorDifference^) | Compares two images based on the tolerance value for whole image. |
![]() ![]() | Compare(Image^, Image^, ColorDifference^, Image^) | Compares two images based on the tolerance value for whole image. |
![]() ![]() | Compare(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. |
![]() ![]() | Compare(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. |
![]() ![]() | Compare(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.

