2021
01-08
01-08
C# 抓图服务的实现
C#抓图服务首先抽象出抓图接口,然后对接口做基于公共操作的抽象类封装,之后针对不同的抓图方式做差异化处理,最后根据接口实现抓图服务。注意:Win32封装实现参考C#使用BitBlt进行窗口抓图。Github示例工程:SimpleWindowCapture。1、抓图接口usingSystem;usingWin32Proxy;namespaceCaptureProxy{internalinterfaceICaptureHelper{boolInit(stringwindowName);boolInit(IntPtrhandle);voidCleanup();boolRe...
继续阅读 >