Class ScreenshotExtensions
- Namespace
- NetAutoGUI
- Assembly
- NetAutoGUI.dll
public static class ScreenshotExtensions
- Inheritance
-
ScreenshotExtensions
- Inherited Members
-
Methods
ClickOnScreen(IScreenshotController, string, double, double)
public static void ClickOnScreen(this IScreenshotController ctl, string imgFileToBeFound, double confidence = 0.99, double timeoutSeconds = 5)
Parameters
ctl IScreenshotController
imgFileToBeFound string
confidence double
timeoutSeconds double
Highlight(IScreenshotController, BitmapData, double)
public static void Highlight(this IScreenshotController ctl, BitmapData imgFileToBeFound, double confidence = 0.99)
Parameters
ctl IScreenshotController
imgFileToBeFound BitmapData
confidence double
LocateAllOnScreen(IScreenshotController, BitmapData, double)
public static Rectangle[] LocateAllOnScreen(this IScreenshotController ctrl, BitmapData imgFileToBeFound, double confidence = 0.99)
Parameters
ctrl IScreenshotController
imgFileToBeFound BitmapData
confidence double
Returns
- Rectangle[]
LocateOnScreen(IScreenshotController, BitmapData, double)
public static Rectangle? LocateOnScreen(this IScreenshotController ctl, BitmapData imgFileToBeFound, double confidence = 0.99)
Parameters
ctl IScreenshotController
imgFileToBeFound BitmapData
confidence double
Returns
- Rectangle
WaitOnScreen(IScreenshotController, BitmapData, double, double)
public static Rectangle WaitOnScreen(this IScreenshotController ctl, BitmapData imgFileToBeFound, double confidence = 0.99, double timeoutSeconds = 5)
Parameters
ctl IScreenshotController
imgFileToBeFound BitmapData
confidence double
timeoutSeconds double
Returns
- Rectangle
WaitOnScreen(IScreenshotController, string, double, double)
public static Rectangle WaitOnScreen(this IScreenshotController ctl, string imgFileToBeFound, double confidence = 0.99, double timeoutSeconds = 5)
Parameters
ctl IScreenshotController
imgFileToBeFound string
confidence double
timeoutSeconds double
Returns
- Rectangle
WaitOnScreenAsync(IScreenshotController, BitmapData, double, double, CancellationToken)
public static Task<Rectangle> WaitOnScreenAsync(this IScreenshotController ctl, BitmapData imgFileToBeFound, double confidence = 0.99, double timeoutSeconds = 5, CancellationToken cancellationToken = default)
Parameters
ctl IScreenshotController
imgFileToBeFound BitmapData
confidence double
timeoutSeconds double
cancellationToken CancellationToken
Returns
- Task<Rectangle>