 | ImagingFindSingle Method (Bitmap, Bitmap, ImagingFindOptions) |
Searches for the specified feature in the image.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static ImagingMatch FindSingle(
Bitmap image,
Bitmap feature,
ImagingFindOptions options
)
Public Shared Function FindSingle (
image As Bitmap,
feature As Bitmap,
options As ImagingFindOptions
) As ImagingMatch
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:
ImagingMatchThe first or best
ImagingMatch found (as specified in the
options).
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. |
| ImageNotFoundException | If the feature could
not be found. |
See Also