RanorexRanorex Documentation
FindSingle Method (image, feature, options)
NamespacesRanorexImagingFindSingle(Bitmap, Bitmap, Imaging..::.FindOptions)
Searches for the specified feature in the image.
Declaration Syntax
C#Visual BasicVisual C++
public static Imaging..::.Match FindSingle(
	Bitmap image,
	Bitmap feature,
	Imaging..::.FindOptions options
)
Public Shared Function FindSingle ( _
	image As Bitmap, _
	feature As Bitmap, _
	options As Imaging..::.FindOptions _
) As Imaging..::.Match
public:
static Imaging..::.Match^ FindSingle(
	Bitmap^ image, 
	Bitmap^ feature, 
	Imaging..::.FindOptions^ options
)
Parameters
image (Bitmap)
The image to search in.
feature (Bitmap)
The image to search for.
options (Imaging..::.FindOptions)
A Imaging..::.FindOptions instance that defines the options for the search.
Return Value
The first or best Imaging..::.Match 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.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 4.0.3.22982 (4.0.3.22982)