Click or drag to resize
Ranorex

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
Syntax
public static ImagingMatch FindSingle(
	Bitmap image,
	Bitmap feature,
	ImagingFindOptions options
)

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: ImagingMatch
The first or best ImagingMatch found (as specified in the options).
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.
ImageNotFoundExceptionIf the feature could not be found.
See Also