请问为什么屏幕上的截图没有mouse?
我用以下在屏幕上截图:
Graphics graphics = control.CreateGraphics();
IntPtr hDCPanel = graphics.GetHdc();
IntPtr hDCDesktop = Win32.GetDC(hWndDesktop);
Win32.StretchBlt(hDCPanel, 0, 0, 800, 600,
hDCDesktop, left, top,800 / zoomRate, 600 / zoomRate,
Win32.SRCCOPY);
graphics.ReleaseHdc(hDCPanel);
Win32.ReleaseDC(hWndDesktop, hDCDesktop);
所调用的API是这样的(在Win32 class底下):
[DllImport("Gdi32.dll")]
public static extern int StretchBlt(
IntPtr hdcDest,
int nXOriginDest,
int nYOriginDest,
int nWidthDest,
int nHeightDest,
IntPtr hdcSrc,
int nXOriginSrc,
int nYOriginSrc,
int nWidthSrc,
int nHeightSrc,
int dwRop
);
可以截图,但所截出来的图没有鼠标,请问怎样也把mouse的形状也截到图上? 谢谢.
Graphics graphics = control.CreateGraphics();
IntPtr hDCPanel = graphics.GetHdc();
IntPtr hDCDesktop = Win32.GetDC(hWndDesktop);
Win32.StretchBlt(hDCPanel, 0, 0, 800, 600,
hDCDesktop, left, top,800 / zoomRate, 600 / zoomRate,
Win32.SRCCOPY);
graphics.ReleaseHdc(hDCPanel);
Win32.ReleaseDC(hWndDesktop, hDCDesktop);
所调用的API是这样的(在Win32 class底下):
[DllImport("Gdi32.dll")]
public static extern int StretchBlt(
IntPtr hdcDest,
int nXOriginDest,
int nYOriginDest,
int nWidthDest,
int nHeightDest,
IntPtr hdcSrc,
int nXOriginSrc,
int nYOriginSrc,
int nWidthSrc,
int nHeightSrc,
int dwRop
);
可以截图,但所截出来的图没有鼠标,请问怎样也把mouse的形状也截到图上? 谢谢.
...全文
相关推荐
Mouse鼠标截图软件
Mouse鼠标截图软件
(必备技能)使用Python实现屏幕截图
(必备技能)使用Python实现屏幕截图 文章目录(必备技能)使用Python实现屏幕截图一、序言二、环境配置1、下载pyautogui包2、下载opencv-python包3、下载PyQt5包4、下载pypiwin32包三、屏幕截屏源码与解析1、使用pyautogui方法实现截屏2、使用PyQt方法实现截屏a.获取窗口的句柄,也就是目标窗口名title。b.使用PyQt5截屏核心程序c.使用PyQt5截屏用Mat格式显示的核心程序四、结语 一、序言 在csdn上有很多纯copy,这给我复现带来了很大的麻烦
屏幕截图setuna
setuna 截图 好用的截图 方便好用的截图 日本人写的一款软件 可以在屏幕上截图 并且可以随意缩放 截图是置顶的 很实用的软件
android 指定屏幕内区域截图
网上找了很多屏幕截图的东西,这里指定截取屏幕一个LinerLayout中的内容。自动截图保存到本地。
Python实现屏幕截图的两种方式
主要介绍了Python实现屏幕截图的两种方式及对这两者的特点和用法进行详细解释,感兴趣的朋友一起看看


