Click or drag to resize
Ranorex

ImagingContains Method (Bitmap, Bitmap, ImagingFindOptions)

Searches for the specified feature in the image and returns whether the feature is found.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static bool Contains(
	Bitmap image,
	Bitmap feature,
	ImagingFindOptions options
)

Parameters

image
Type: System.DrawingBitmap
The image to search in.
feature
Type: System.DrawingBitmap
The image to search for.
options
Type: RanorexImagingFindOptions
A ImagingFindOptions instance that defines the options for the search.

Return Value

Type: Boolean
True if the feature is found, otherwise false.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf image is null.
ArgumentNullExceptionIf feature is null.
ArgumentExceptionIf the feature is greater in size than the image.
ArgumentExceptionIf the bitmap format of the feature cannot be converted to that of the image.
See Also