UFT Pro (LeanFT) .NET SDK Reference, Version 14.03
CompareImages(Image,Image,Byte,Byte) Method
The expected image.
The image to compare to the expected image.
Optional. The percentage of pixels that can differ between the two images, and still be considered a match. Default = 0.
Optional. The percent by which the RGB values of the pixels in the two images can differ, and still be considered a match. Default = 0.
Checks whether two images are a match, given the specified pixel and RGB tolerance values.
Syntax

Parameters

firstImage
The expected image.
secondImage
The image to compare to the expected image.
pixelTolerance
Optional. The percentage of pixels that can differ between the two images, and still be considered a match. Default = 0.
rgbTolerance
Optional. The percent by which the RGB values of the pixels in the two images can differ, and still be considered a match. Default = 0.