文件名称:ScreenCap
- 所属分类:
- 绘图程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 72kb
- 下载次数:
- 0次
- 提 供 者:
- xux****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用GDI函数抓屏
如果我们不太在意抓屏的效率,并且我们想要的只是一个屏幕快照的话,可以考虑使用GDI方式。这种抓屏机制是以“桌面也是一个窗口,桌面也有一个窗口句柄(HWND)”这个简单的常识为基础的,如果我们得到了桌面的设备上下文(DC),就可以利用blit(复制)它的内容到我们创建的DC中。我们可以用GetDeskWindow()得到桌面的窗口句柄,从句柄得到DC也是很容易的
-GDI function with screenshots screenshots if we do not care about efficiency, and we want only a snapshot of the screen, you can consider using GDI mode. This mechanism is based on the screenshots Desktop is also a window, the desktop also has a window handle (HWND) This simple knowledge-based, if we get the desktop device context (DC), can be used on the blit (copy) its contents that we created in DC. We can use GetDeskWindow () get desktop window handle from the handle to get DC is also very easy
如果我们不太在意抓屏的效率,并且我们想要的只是一个屏幕快照的话,可以考虑使用GDI方式。这种抓屏机制是以“桌面也是一个窗口,桌面也有一个窗口句柄(HWND)”这个简单的常识为基础的,如果我们得到了桌面的设备上下文(DC),就可以利用blit(复制)它的内容到我们创建的DC中。我们可以用GetDeskWindow()得到桌面的窗口句柄,从句柄得到DC也是很容易的
-GDI function with screenshots screenshots if we do not care about efficiency, and we want only a snapshot of the screen, you can consider using GDI mode. This mechanism is based on the screenshots Desktop is also a window, the desktop also has a window handle (HWND) This simple knowledge-based, if we get the desktop device context (DC), can be used on the blit (copy) its contents that we created in DC. We can use GetDeskWindow () get desktop window handle from the handle to get DC is also very easy
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ScreenCap
.........\AviFile.cpp
.........\AviFile.h
.........\ReadMe.txt
.........\Release
.........\resource.h
.........\ScreenCap.7.00.sln
.........\ScreenCap.7.00.vcproj
.........\ScreenCap.cpp
.........\ScreenCap.h
.........\ScreenCap.rc
.........\ScreenCap.sln
.........\ScreenCap.vcproj
.........\ScreenCap.vcproj.vspscc
.........\ScreenCap.vssscc
.........\stdafx.cpp
.........\stdafx.h
.........\AviFile.cpp
.........\AviFile.h
.........\ReadMe.txt
.........\Release
.........\resource.h
.........\ScreenCap.7.00.sln
.........\ScreenCap.7.00.vcproj
.........\ScreenCap.cpp
.........\ScreenCap.h
.........\ScreenCap.rc
.........\ScreenCap.sln
.........\ScreenCap.vcproj
.........\ScreenCap.vcproj.vspscc
.........\ScreenCap.vssscc
.........\stdafx.cpp
.........\stdafx.h