Sdílet prostřednictvím


ImageComparer.Compare – metoda (Image, Image, List<ToleranceRectangle>)

Porovnává konkrétní oblasti podle oblasti určené tolerance obdélníky dva obrazy.

Vrátí hodnotu true Pokud je obraz rozdíl v rámci tolerance.

Obor názvů:  Microsoft.VisualStudio.TestTools.UITesting
Sestavení:  Microsoft.VisualStudio.TestTools.UITesting (v Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntaxe

'Deklarace
Public Shared Function Compare ( _
    actualImage As Image, _
    expectedImage As Image, _
    rectangleList As List(Of ToleranceRectangle) _
) As Boolean
public static bool Compare(
    Image actualImage,
    Image expectedImage,
    List<ToleranceRectangle> rectangleList
)
public:
static bool Compare(
    Image^ actualImage, 
    Image^ expectedImage, 
    List<ToleranceRectangle>^ rectangleList
)
static member Compare : 
        actualImage:Image * 
        expectedImage:Image * 
        rectangleList:List<ToleranceRectangle> -> bool 
public static function Compare(
    actualImage : Image, 
    expectedImage : Image, 
    rectangleList : List<ToleranceRectangle>
) : boolean

Parametry

Vrácená hodnota

Typ: System.Boolean
PRAVDA, pokud splňují dva obrazy v obdélnících tolerance zadané hodnoty.

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

ImageComparer Třída

Compare – přetížení

Microsoft.VisualStudio.TestTools.UITesting – obor názvů