次の方法で共有


ImageComparer.Compare メソッド (Image, Image, ColorDifference)

イメージ全体の許容値に基づいて 2 つのイメージを比較します。

名前空間:  Microsoft.VisualStudio.TestTools.UITesting
アセンブリ:  Microsoft.VisualStudio.TestTools.UITesting (Microsoft.VisualStudio.TestTools.UITesting.dll 内)

構文

'宣言
Public Shared Function Compare ( _
    actualImage As Image, _
    expectedImage As Image, _
    argbTolerance As ColorDifference _
) As Boolean
public static bool Compare(
    Image actualImage,
    Image expectedImage,
    ColorDifference argbTolerance
)
public:
static bool Compare(
    Image^ actualImage, 
    Image^ expectedImage, 
    ColorDifference^ argbTolerance
)
static member Compare : 
        actualImage:Image * 
        expectedImage:Image * 
        argbTolerance:ColorDifference -> bool 
public static function Compare(
    actualImage : Image, 
    expectedImage : Image, 
    argbTolerance : ColorDifference
) : boolean

パラメーター

戻り値

型 : System.Boolean
2 種類のイメージがである、指定した許容範囲に満たないことで量異なったら調整します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

ImageComparer クラス

Compare オーバーロード

Microsoft.VisualStudio.TestTools.UITesting 名前空間