Share this page

VerifyImageMatch(Image,ImageMaskArea,Byte,Byte) Method
Checks whether the defined mask areas within the object snapshot and the supplied image match, given the specified pixel and RGB tolerance values.
Remarks
Returns true only if the mask areas match and the two full images are the same size.

When this method returns a false value, the step fails, but the failure does not throw an exception or cause the test to stop running.

C# Syntax

    bool VerifyImageMatch(
       Image expectedImage,
       ImageMaskArea maskArea,
       byte pixelTolerance,
       byte rgbTolerance
    )

Parameters

expectedImage
  The image to compare to the test object snapshot.
maskArea
  The mask area within the two images to use for the comparison.
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.

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: