Share this page

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

C# Syntax

    public static bool CompareImages(
       Image firstImage,
       Image secondImage,
       ImageMaskArea maskArea,
       byte pixelTolerance,
       byte rgbTolerance
    )

Parameters

firstImage
  The expected image.
secondImage
  The image to compare to the expected image.
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 mask areas, 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... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: