Click or drag to resize
Ranorex

ValidateContainsImage Method (RepoItemInfo, Bitmap, ImagingFindOptions)

Validates if the screenshot of the specified repository item contains the given image.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void ContainsImage(
	RepoItemInfo itemInfo,
	Bitmap image,
	ImagingFindOptions findOptions
)

Parameters

itemInfo
Type: Ranorex.Core.RepositoryRepoItemInfo
The RepoItemInfo object for the repository item.
image
Type: System.DrawingBitmap
The image to search inside the item screenshot.
findOptions
Type: RanorexImagingFindOptions
A ImagingFindOptions instance that defines the options for the search.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf image is null.
ValidationExceptionIf the validation fails.
See Also