ImageComparer.Compare Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member Compare(Image, Image) Compares two images to check whether they are the same.
Public methodStatic member Compare(Image, Image, ColorDifference) Compares two images based on the tolerance value for whole image.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member Compare(Image, Image, ColorDifference, Image%) Compares two images based on the tolerance value for whole image.
Public methodStatic member 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

See Also

Reference

ImageComparer Class

Microsoft.VisualStudio.TestTools.UITesting Namespace