Click or drag to resize
Ranorex

ImagingContains Method (Bitmap, Bitmap)

Searches for the specified feature in the image using DefaultImagingFindOptions 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
)

Parameters

image
Type: System.DrawingBitmap
The image to search in.
feature
Type: System.DrawingBitmap
The image to search for.

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