Merge pull request #32 from iwkjosec/fix-typo

Fix typo
This commit is contained in:
DarthAffe 2024-03-26 12:49:13 +01:00 committed by GitHub
commit ae6cf5c7c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -26,14 +26,14 @@ IEnumerable<Display> displays = screenCaptureService.GetDisplays(graphicsCards.F
// Create a screen-capture for all screens you want to capture
IScreenCapture screenCapture = screenCaptureService.GetScreenCapture(displays.First());
// Register the regions you want to capture om the screen
// Register the regions you want to capture on the screen
// Capture the whole screen
ICaptureZone fullscreen = screenCapture.RegisterCaptureZone(0, 0, screenCapture.Display.Width, screenCapture.Display.Height);
// Capture a 100x100 region at the top left and scale it down to 50x50
ICaptureZone topLeft = screenCapture.RegisterCaptureZone(0, 0, 100, 100, downscaleLevel: 1);
// Capture the screen
// This should be done in a loop on a seperate thread as CaptureScreen blocks if the screen is not updated (still image).
// This should be done in a loop on a separate thread as CaptureScreen blocks if the screen is not updated (still image).
screenCapture.CaptureScreen();
// Do something with the captured image - e.g. access all pixels (same could be done with topLeft)

View File

@ -13,7 +13,7 @@ public abstract class AbstractScreenCapture<TColor> : IScreenCapture
private bool _isDisposed;
/// <summary>
/// Gets a list of <see cref="CaptureZone{TColol}"/> registered on this ScreenCature.
/// Gets a list of <see cref="CaptureZone{TColol}"/> registered on this ScreenCapture.
/// </summary>
protected HashSet<CaptureZone<TColor>> CaptureZones { get; } = new();
@ -244,4 +244,4 @@ public abstract class AbstractScreenCapture<TColor> : IScreenCapture
protected virtual void Dispose(bool disposing) { }
#endregion
}
}

View File

@ -18,7 +18,7 @@ public interface IScreenCapture : IDisposable
event EventHandler<ScreenCaptureUpdatedEventArgs>? Updated;
/// <summary>
/// Attemts to capture the current frame showed on the <see cref="Display"/>.
/// Attempts to capture the current frame showed on the <see cref="Display"/>.
/// </summary>
/// <returns><c>true</c> if the current frame was captures successfully; otherwise, <c>false</c>.</returns>
bool CaptureScreen();
@ -59,4 +59,4 @@ public interface IScreenCapture : IDisposable
/// Restarts the <see cref="IScreenCapture"/>.
/// </summary>
void Restart();
}
}