Interface IScreenshotController
- Namespace
- NetAutoGUI
- Assembly
- NetAutoGUI.dll
Controller for screenshot
public interface IScreenshotController
- Extension Methods
Methods
Highlight(params Rectangle[])
Highlight several areas
void Highlight(params Rectangle[] rectangles)
Parameters
rectangles
Rectangle[]multiple areas to highlight
LocateAll(BitmapData, BitmapData, double)
Locates all occurrences of a given bitmap within a base image with a specified confidence level.
Rectangle[] LocateAll(BitmapData basePicture, BitmapData bitmapToBeFound, double confidence = 0.99)
Parameters
basePicture
BitmapDataThe base image where the search is performed
bitmapToBeFound
BitmapDataThe image to locate within the base image
confidence
doubleThe confidence level required for a match, ranging from 0.0 to 1.0. A value closer to 1.0 ensures higher accuracy but may result in fewer matches.
Returns
- Rectangle[]
An array of Rectangle objects, each representing a located instance of
bitmapToBeFound
withinbasePicture
.
LocateAllWithConfidence(BitmapData, BitmapData, double)
Locates all occurrences of a given bitmap within a base image with a specified confidence level.
RectangleWithConfidence[] LocateAllWithConfidence(BitmapData basePicture, BitmapData bitmapToBeFound, double confidence = 0.99)
Parameters
basePicture
BitmapDataThe base image where the search is performed
bitmapToBeFound
BitmapDataThe image to locate within the base image
confidence
doubleThe confidence level required for a match, ranging from 0.0 to 1.0. A value closer to 1.0 ensures higher accuracy but may result in fewer matches.
Returns
- RectangleWithConfidence[]
An array of RectangleWithConfidence objects, each representing a located instance of
bitmapToBeFound
withinbasePicture
, along with the confidence score.
Screenshot()
Take a screenshot. If there are multiple monitors, they will be displayed into a single image with system's multiple displays' arrangement. On Windows, please invoke GUIWindows.Initialize() at the beginning of application's entry, for example Main() or Program.cs
BitmapData Screenshot()
Returns
Screenshot(Window)
Take a screenshot of a window.
BitmapData Screenshot(Window window)
Parameters
window
Window