ImageComparer Class
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TestTools.UITesting.ImageComparer
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public NotInheritable Class ImageComparer
public static class ImageComparer
public ref class ImageComparer abstract sealed
[<AbstractClass>]
[<Sealed>]
type ImageComparer = class end
public final class ImageComparer
Methods
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, 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, 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, ColorDifference, Image%) | Compares two images based on the tolerance value for whole image. |
![]() ![]() |
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. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.