提供老版本的稳定 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

@@ -67,7 +67,7 @@ namespace Fischless.GameCapture.DwmSharedSurface
return region;
}
public Mat? Capture()
public CaptureImageRes? Capture()
{
if (_hWnd == nint.Zero)
{
@@ -98,7 +98,7 @@ namespace Fischless.GameCapture.DwmSharedSurface
}
var bgrMat = new Mat();
Cv2.CvtColor(mat, bgrMat, ColorConversionCodes.BGRA2BGR);
return bgrMat;
return CaptureImageRes.BuildNullable(bgrMat);
}
}