RanorexRanorex Documentation
Compare Method (imageA, imageB, similarity)
NamespacesRanorexImagingCompare(Bitmap, Bitmap, Double)
Compares imageA and imageB and returns whether their similarity is greater than or equal to similarity.
Declaration Syntax
C#Visual BasicVisual C++
public static bool Compare(
	Bitmap imageA,
	Bitmap imageB,
	double similarity
)
Public Shared Function Compare ( _
	imageA As Bitmap, _
	imageB As Bitmap, _
	similarity As Double _
) As Boolean
public:
static bool Compare(
	Bitmap^ imageA, 
	Bitmap^ imageB, 
	double similarity
)
Parameters
imageA (Bitmap)
The first image.
imageB (Bitmap)
The second image.
similarity (Double)
The minimum similarity of the two images in order to return true.
Return Value
True if the similarity of the two images is greater than or equal to similarity.
Remarks
False will be returned if the two images do not have the same size. If similarity is smaller than or equal to zero, true is returned.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf imageA is null.
ArgumentNullExceptionIf imageB is null.
ArgumentExceptionIf the bitmap format of the imageB cannot be converted to that of the imageA.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)