 | ValidateCompareImage Method (RepoItemInfo, Bitmap, ImagingFindOptions) |
Validates if the screenshot of the specified repository item matches the given image.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static void CompareImage(
RepoItemInfo itemInfo,
Bitmap image,
ImagingFindOptions findOptions
)
Public Shared Sub CompareImage (
itemInfo As RepoItemInfo,
image As Bitmap,
findOptions As ImagingFindOptions
)
Parameters
- itemInfo
- Type: Ranorex.Core.RepositoryRepoItemInfo
The RepoItemInfo object for the repository item. - image
- Type: System.DrawingBitmap
The image which is compared to the item screenshot. - findOptions
- Type: RanorexImagingFindOptions
A ImagingFindOptions instance that defines the options
for the comparison.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If image is null. |
| ValidationException | If the validation fails. |
See Also