 | ImagingContains Method (Bitmap, Bitmap) |
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static bool Contains(
Bitmap image,
Bitmap feature
)
Public Shared Function Contains (
image As Bitmap,
feature As Bitmap
) As Boolean
Parameters
- image
- Type: System.DrawingBitmap
The image to search in. - feature
- Type: System.DrawingBitmap
The image to search for.
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