提供老版本的稳定 BitBlt 功能

This commit is contained in:
辉鸭蛋
2025-04-11 00:11:42 +08:00
parent 6b306582d0
commit 1df15bb83c
21 changed files with 319 additions and 48 deletions

View File

@@ -278,7 +278,7 @@ public class GraphicsCapture : IGameCapture
return sdkMat;
}
public Mat? Capture()
public CaptureImageRes? Capture()
{
// 使用读锁获取最新帧
_frameAccessLock.EnterReadLock();
@@ -291,7 +291,7 @@ public class GraphicsCapture : IGameCapture
}
// 返回最新帧的副本这里我们必须克隆因为Mat是不线程安全的
return _latestFrame.Clone();
return CaptureImageRes.BuildNullable(_latestFrame.Clone());
}
finally
{