mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-02 10:45:22 +08:00
提供老版本的稳定 BitBlt 功能
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user