add manually pick window hwnd

This commit is contained in:
huiyadanli
2024-02-07 22:29:20 +08:00
parent d67e5e5635
commit c1018bf3fd
3 changed files with 54 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ public class GraphicsCapture : IGameCapture
private ResourceRegion? _region;
private Bitmap _currentBitmap;
private Bitmap? _currentBitmap;
public void Dispose() => Stop();
@@ -126,6 +126,11 @@ public class GraphicsCapture : IGameCapture
// }
//
// return null;
if (_currentBitmap == null)
{
return null;
}
return (Bitmap)_currentBitmap.Clone();
}