GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.IImageMatcher Interface Reference

Finds a picture on a capture of the screen or of a browser. The GPAL.Image package provides one and registers it with GPAL.RegisterImageMatcher; GPAL itself has none, so it carries no image library. More...

Public Member Functions

Rectangle FindImage (Bitmap screen, string templatePath, int matchingPercentage)
 Where the picture in templatePath is on screen .

Detailed Description

Finds a picture on a capture of the screen or of a browser. The GPAL.Image package provides one and registers it with GPAL.RegisterImageMatcher; GPAL itself has none, so it carries no image library.

Definition at line 32 of file ImageHelper.cs.

Member Function Documentation

◆ FindImage()

Rectangle GenerallyPositive.IImageMatcher.FindImage ( Bitmap screen,
string templatePath,
int matchingPercentage )

Where the picture in templatePath is on screen .

Parameters
screenThe capture to search
templatePathThe picture to find
matchingPercentageHow close a match has to be, 0 to 100
Returns
Where it is, in the capture's coordinates, or an empty rectangle when it is not there

The documentation for this interface was generated from the following file: