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
- actualImage
Typ: System.Drawing.Image
Vlastní obraz.
- expectedImage
Typ: System.Drawing.Image
Očekávané obrazu.
- rectangleList
Typ: System.Collections.Generic.List<ToleranceRectangle>
Seznam tolerance obdélníky označující oblast porovnat a tolerance hodnota.
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
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.