RanorexRanorex Documentation
Compare Method (imageA, imageB)
NamespacesRanorexImagingCompare(Bitmap, Bitmap)
Compares imageA and imageB and returns their similarity.
Declaration Syntax
C#Visual BasicVisual C++
public static double Compare(
	Bitmap imageA,
	Bitmap imageB
)
Public Shared Function Compare ( _
	imageA As Bitmap, _
	imageB As Bitmap _
) As Double
public:
static double Compare(
	Bitmap^ imageA, 
	Bitmap^ imageB
)
Parameters
imageA (Bitmap)
The first image.
imageB (Bitmap)
The second image.
Return Value
The similarity of the two images.
Remarks
A similarity of zero will be returned if the two images do not have the same size. No preprocessing or clipping is done on the specified images.
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: 4.0.4.23593 (4.0.4.23593)