From ba29b41328e8da5248dc45352066105b0ac6a12e Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Sun, 22 Aug 2021 22:33:52 -0400 Subject: [PATCH] More documentation and better method/class modifiers --- src/Askaiser.Marionette/DriverOptions.cs | 3 +++ src/Askaiser.Marionette/MatExtensions.cs | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Askaiser.Marionette/DriverOptions.cs b/src/Askaiser.Marionette/DriverOptions.cs index fe3bf93..bccb149 100644 --- a/src/Askaiser.Marionette/DriverOptions.cs +++ b/src/Askaiser.Marionette/DriverOptions.cs @@ -57,6 +57,8 @@ public string FailureScreenshotPath } /// + /// Gets or sets how long previous screenshot bytes will be reused in subsequent searches. The cache will be evicted if the current monitor is changed. + /// It can be useful when searching for multiple elements at the same time, but it can also make the driver miss some frames. /// Default value: 100 milliseconds. /// public TimeSpan ScreenshotCacheDuration @@ -66,6 +68,7 @@ public TimeSpan ScreenshotCacheDuration } /// + /// When an element is not found and the driver is allowed to try again to find it, it will wait for this specific duration before retrying. /// Default value: 50 milliseconds. /// public TimeSpan WaitForThrottlingInterval diff --git a/src/Askaiser.Marionette/MatExtensions.cs b/src/Askaiser.Marionette/MatExtensions.cs index a7b3396..9436fb2 100644 --- a/src/Askaiser.Marionette/MatExtensions.cs +++ b/src/Askaiser.Marionette/MatExtensions.cs @@ -3,9 +3,9 @@ namespace Askaiser.Marionette { - public static class MatExtensions + internal static class MatExtensions { - internal static Mat ToGrayscale(this Mat mat) + public static Mat ToGrayscale(this Mat mat) { var channelCount = mat.Channels(); @@ -18,7 +18,7 @@ internal static Mat ToGrayscale(this Mat mat) }; } - internal static Mat ToBGR(this Mat mat) + public static Mat ToBGR(this Mat mat) { var channelCount = mat.Channels();