 | ImagingFind Method (Element, Bitmap, ImagingFindOptions) |
Searches for the specified
feature in (a screenshot of) the
element and returns a list of
ImagingMatches.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static List<ImagingMatch> Find(
Element element,
Bitmap feature,
ImagingFindOptions options
)
Public Shared Function Find (
element As Element,
feature As Bitmap,
options As ImagingFindOptions
) As List(Of ImagingMatch)
Parameters
- element
- Type: Ranorex.CoreElement
The element to make a screenshot of in which will be searched. - 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:
ListImagingMatchA list of
ImagingMatches found.
Exceptions| Exception | Condition |
|---|
| RanorexException | If capturing a screenshot of the element fails. |
| ArgumentNullException | If element is null. |
| ArgumentNullException | If feature is null. |
| ArgumentException | If the feature is greater in size
than the screenshot of the element. |
| ArgumentException | If the bitmap format of the feature
cannot be converted to that (color image, Format24bppRgb)
of the screenshot of the element. |
See Also