ImageComparer.Compare Method

Definition

Overloads

Compare(Image, Image)
Compare(Image, Image, ColorDifference)
Compare(Image, Image, List<ToleranceRectangle>)
Compare(Image, Image, Image)
Compare(Image, Image, ColorDifference, Image)
Compare(Image, Image, List<ToleranceRectangle>, Image)

Compare(Image, Image)

public:
 static bool Compare(System::Drawing::Image ^ actualImage, System::Drawing::Image ^ expectedImage);
public static bool Compare (System.Drawing.Image actualImage, System.Drawing.Image expectedImage);
static member Compare : System.Drawing.Image * System.Drawing.Image -> bool
Public Shared Function Compare (actualImage As Image, expectedImage As Image) As Boolean

Parameters

actualImage
Image
expectedImage
Image

Returns

Applies to

Compare(Image, Image, ColorDifference)

public:
 static bool Compare(System::Drawing::Image ^ actualImage, System::Drawing::Image ^ expectedImage, Microsoft::VisualStudio::TestTools::UITesting::ColorDifference ^ argbTolerance);
public static bool Compare (System.Drawing.Image actualImage, System.Drawing.Image expectedImage, Microsoft.VisualStudio.TestTools.UITesting.ColorDifference argbTolerance);
static member Compare : System.Drawing.Image * System.Drawing.Image * Microsoft.VisualStudio.TestTools.UITesting.ColorDifference -> bool
Public Shared Function Compare (actualImage As Image, expectedImage As Image, argbTolerance As ColorDifference) As Boolean

Parameters

actualImage
Image
expectedImage
Image
argbTolerance
ColorDifference

Returns

Applies to

Compare(Image, Image, List<ToleranceRectangle>)

public:
 static bool Compare(System::Drawing::Image ^ actualImage, System::Drawing::Image ^ expectedImage, System::Collections::Generic::List<Microsoft::VisualStudio::TestTools::UITesting::ToleranceRectangle> ^ rectangleList);
public static bool Compare (System.Drawing.Image actualImage, System.Drawing.Image expectedImage, System.Collections.Generic.List<Microsoft.VisualStudio.TestTools.UITesting.ToleranceRectangle> rectangleList);
static member Compare : System.Drawing.Image * System.Drawing.Image * System.Collections.Generic.List<Microsoft.VisualStudio.TestTools.UITesting.ToleranceRectangle> -> bool
Public Shared Function Compare (actualImage As Image, expectedImage As Image, rectangleList As List(Of ToleranceRectangle)) As Boolean

Parameters

actualImage
Image
expectedImage
Image
rectangleList
List<ToleranceRectangle>

Returns

Applies to

Compare(Image, Image, Image)

public:
 static bool Compare(System::Drawing::Image ^ actualImage, System::Drawing::Image ^ expectedImage, [Runtime::InteropServices::Out] System::Drawing::Image ^ % diffImage);
public static bool Compare (System.Drawing.Image actualImage, System.Drawing.Image expectedImage, out System.Drawing.Image diffImage);
static member Compare : System.Drawing.Image * System.Drawing.Image * Image -> bool
Public Shared Function Compare (actualImage As Image, expectedImage As Image, ByRef diffImage As Image) As Boolean

Parameters

actualImage
Image
expectedImage
Image
diffImage
Image

Returns

Applies to

Compare(Image, Image, ColorDifference, Image)

public:
 static bool Compare(System::Drawing::Image ^ actualImage, System::Drawing::Image ^ expectedImage, Microsoft::VisualStudio::TestTools::UITesting::ColorDifference ^ argbTolerance, [Runtime::InteropServices::Out] System::Drawing::Image ^ % diffImage);
public static bool Compare (System.Drawing.Image actualImage, System.Drawing.Image expectedImage, Microsoft.VisualStudio.TestTools.UITesting.ColorDifference argbTolerance, out System.Drawing.Image diffImage);
static member Compare : System.Drawing.Image * System.Drawing.Image * Microsoft.VisualStudio.TestTools.UITesting.ColorDifference * Image -> bool
Public Shared Function Compare (actualImage As Image, expectedImage As Image, argbTolerance As ColorDifference, ByRef diffImage As Image) As Boolean

Parameters

actualImage
Image
expectedImage
Image
argbTolerance
ColorDifference
diffImage
Image

Returns

Applies to

Compare(Image, Image, List<ToleranceRectangle>, Image)

public:
 static bool Compare(System::Drawing::Image ^ actualImage, System::Drawing::Image ^ expectedImage, System::Collections::Generic::List<Microsoft::VisualStudio::TestTools::UITesting::ToleranceRectangle> ^ rectangleList, [Runtime::InteropServices::Out] System::Drawing::Image ^ % diffImage);
public static bool Compare (System.Drawing.Image actualImage, System.Drawing.Image expectedImage, System.Collections.Generic.List<Microsoft.VisualStudio.TestTools.UITesting.ToleranceRectangle> rectangleList, out System.Drawing.Image diffImage);
static member Compare : System.Drawing.Image * System.Drawing.Image * System.Collections.Generic.List<Microsoft.VisualStudio.TestTools.UITesting.ToleranceRectangle> * Image -> bool
Public Shared Function Compare (actualImage As Image, expectedImage As Image, rectangleList As List(Of ToleranceRectangle), ByRef diffImage As Image) As Boolean

Parameters

actualImage
Image
expectedImage
Image
rectangleList
List<ToleranceRectangle>
diffImage
Image

Returns

Applies to