 | 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
Syntaxpublic static bool Contains(
Bitmap image,
Bitmap feature,
ImagingFindOptions options
)
Public Shared Function Contains (
image As Bitmap,
feature As Bitmap,
options As ImagingFindOptions
) As Boolean
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:
BooleanTrue if the
feature is found, otherwise
false.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If image is null. |
| ArgumentNullException | If feature is null. |
| ArgumentException | If the feature is greater in size
than the image. |
| ArgumentException | If the bitmap format of the feature
cannot be converted to that of the image. |
See Also