Added Updated-events

This commit is contained in:
DarthAffe committed 2021-05-21 21:02:13 +02:00
1 parent 1702415aa0
commit e6202d88b5
3 files changed
+47 -2

No files matched your search

+11 -1
View File
@@ -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;