ImageComparer 類別
繼承階層架構
System.Object
Microsoft.VisualStudio.TestTools.UITesting.ImageComparer
命名空間: Microsoft.VisualStudio.TestTools.UITesting
組件: Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
Public NotInheritable Class ImageComparer
public static class ImageComparer
public ref class ImageComparer abstract sealed
[<AbstractClass>]
[<Sealed>]
type ImageComparer = class end
public final class ImageComparer
方法
名稱 | 說明 | |
---|---|---|
![]() ![]() |
Compare(Image, Image) | 比較兩個影像驗證它們是否相同。 |
![]() ![]() |
Compare(Image, Image, ColorDifference) | 根據整個影像的容限值,比較兩個影像。 |
![]() ![]() |
Compare(Image, Image, List<ToleranceRectangle>) | 由指定矩形指定區域比較兩個影像的特定區域。 如果影像區別容許誤差內,則傳回 true。 |
![]() ![]() |
Compare(Image, Image, Image%) | 比較兩個影像檢查它們是否相同,並計算兩個影像之間的差異為差異影像。 |
![]() ![]() |
Compare(Image, Image, ColorDifference, Image%) | 根據整個影像的容限值,比較兩個影像。 |
![]() ![]() |
Compare(Image, Image, List<ToleranceRectangle>, Image%) | 由指定矩形指定區域比較兩個影像的特定區域。 傳回 true,如果影像區別容許誤差內,然後計算這個值會指定遺失當做差異影像的框線。 |
回頁首
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。