mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2026-11-11 11:26:31 +00:00
Added Updated-events
This commit is contained in:
1 parent
1702415aa0
commit
e6202d88b5
3 files changed
+47
-2
No files matched your search
@@ -1,4 +1,6 @@
|
||||
namespace ScreenCapture
|
||||
using System;
|
||||
|
||||
namespace ScreenCapture
|
||||
{
|
||||
public sealed class CaptureZone
|
||||
{
|
||||
@@ -30,6 +32,12 @@
|
||||
|
||||
#endregion
|
||||
|
||||
#region Events
|
||||
|
||||
public event EventHandler? Updated;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public CaptureZone(int id, int x, int y, int width, int height, int downscaleLevel, int unscaledWidth, int unscaledHeight, int captureWidth, int captureHeight, int bufferWidth, int bufferHeight, byte[] buffer)
|
||||
@@ -61,6 +69,8 @@
|
||||
{
|
||||
IsUpdateRequested = false;
|
||||
BlackBars.InvalidateCache();
|
||||
|
||||
Updated?.Invoke(this, new EventArgs());
|
||||
}
|
||||
|
||||
public override int GetHashCode() => Id;
|
||||
|
||||
Reference in new issue
Block a user