Table of Contents

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 BitmapData

The base image where the search is performed

bitmapToBeFound BitmapData

The image to locate within the base image

confidence double

The 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 within basePicture.

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 BitmapData

The base image where the search is performed

bitmapToBeFound BitmapData

The image to locate within the base image

confidence double

The 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 within basePicture, 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

BitmapData

Screenshot(Window)

Take a screenshot of a window.

BitmapData Screenshot(Window window)

Parameters

window Window

Returns

BitmapData