Documentation
Download compressed HTML Help
     
def RanorexPython.ControlCompareImage (   hWnd,
  left,
  top,
  right,
  bottom,
  xOffset,
  yOffset 
)

The function compares the image of the control with another image on the screen.

The positions are given in screen coordinates that are relative to the upper-left corner of the screen.

Parameters:
hWnd Handle to the window.
left Left position of the image to compare.
top Top position of the image to compare.
right Right position of the image to compare.
bottom Bottom position of the image to compare.
xOffset (optional) Offset of the x position of the first pixel in the control to compare, relative to the upper-left corner of the control.
yOffset (optional) Offset of the y position of the first pixel in the control to compare, relative to the upper-left corner of the control.
Returns:
True, if the the two images are identical, otherwise False.
Remarks:
Supported only in RanorexPro.

Documentation based on Ranorex Version 1.5.0 - www.ranorex.com