登录
首页 » 图形图像 » 用GDI函数抓屏 如果我们不太在意抓屏的效率,并且我们想要的只是一个屏幕快照的话,可以考虑使用GDI方式。这种抓屏机制是以“桌面也是一个...

用GDI函数抓屏 如果我们不太在意抓屏的效率,并且我们想要的只是一个屏幕快照的话,可以考虑使用GDI方式。这种抓屏机制是以“桌面也是一个...

于 2023-05-23 发布 文件大小:27.51 kB
0 175
下载积分: 2 下载次数: 1

代码说明:

用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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • CAM学习程序 此程序基于OpenCV中CAM模块。可以用于CAM属性设置,采集视频信号并录制,设置录制视频解码器等方面的学习。 程序中用 R键控制...
    CAM学习程序 此程序基于OpenCV中CAM模块。可以用于CAM属性设置,采集视频信号并录制,设置录制视频解码器等方面的学习。 程序中用 R键控制程序开始录制, P键控制程序暂停录制, S键控制程序停止录制, 录制中有字符RECORD提示。 是一款集学习和实用为一体的小程序。-CAM learning process of this program is based on OpenCV in the CAM module. Property can be used to set the CAM, collecting and recording video signals, set to record video decoder and other areas of learning. Process control program using R button to start recording, P key to pause recording control process, S key control program to stop recording, recording, there are characters in RECORD prompt. Is a set of learning and useful as one of the small programs.
    2023-04-08 10:45:04下载
    积分:1
  • Graphics,game programming and study the DirctX.It can improve your programming.
    图形图像方面、游戏编程的入门指导。涉及DirctX学习指导。-Graphics,game programming and study the DirctX.It can improve your programming.
    2022-07-19 11:16:16下载
    积分:1
  • 一套水印源程序,做这个的朋友可以参考
    一套水印源程序,做这个的朋友可以参考-a watermark source, so the friend can reference
    2022-04-17 20:54:16下载
    积分:1
  • 把DDB转换成DIB
    把DDB转换成DIB-put into DIB
    2022-02-04 12:43:08下载
    积分:1
  • 处理,包括变换。增强。复原,重建,分割,编码等内容...
    图像处理,包括图像变换。图像增强。图像复原,图像重建,图像分割,图像编码等内容-image processing, including image transformation. Image enhancement. Image restoration, image reconstruction, image segmentation, image coding content
    2022-01-26 03:11:03下载
    积分:1
  • 个用MATLAB编写的数字水印算法实例,用MATLAB的编写一个完整的水印嵌入算法只需几十条语句便可以完成,而这些程序如果用C语言或其它高级语言编写程序至少在1...
    个用MATLAB编写的数字水印算法实例,用MATLAB的编写一个完整的水印嵌入算法只需几十条语句便可以完成,而这些程序如果用C语言或其它高级语言编写程序至少在100行以上。这个例子充分证明了MATLAB在数字水印技术处理中的方便-prepared to use the MATLAB digital watermarking algorithm example, using MATLAB prepared a complete embedded watermark algorithm only scores of statements will be completed, and if these procedures using C language or other high-level language programming for at least 100 more firms. This example ample proof of MATLAB in digital watermarking technology to facilitate treatment of
    2022-02-20 10:05:54下载
    积分:1
  • 桌面放大镜,使用delphi编制的桌面放大镜程序,通过对桌面的保存,将保存的进行放大...
    桌面放大镜,使用delphi编制的桌面放大镜程序,通过对桌面的保存,将保存的图像进行放大-Desktop magnifier, desktop magnifier to use delphi compiled program, through the preservation of the desktop will save the image to zoom
    2022-02-03 11:37:00下载
    积分:1
  • 编译成功,bmp浏览器
    编译成功,bmp浏览器-build successful, bmp browser
    2022-08-20 17:01:51下载
    积分:1
  • had any news? Think that the news of the information in the record as Greek? If...
    消息中有什么? 是否觉得一个消息记录中的信息像希腊语一样?如果是这样,那么看一看下面的解释: hwnd 32位的窗口句柄。窗口可以是任何类型的屏幕对象,因为Win32能够维护大多数可视对象的句柄(窗口、对话框、按钮、编辑框等)。 message 用于区别其他消息的常量值,这些常量可以是Windows单元中预定义的常量,也可以是自定义的常量。 wParam 通常是一个与消息有关的常量值,也可能是窗口或控件的句柄。 lParam 通常是一个指向内存中数据的指针。由于W P a r a m、l P a r a m和P o i n t e r都是3 2位的,因此,它们之间可以相互转换。-had any news? Think that the news of the information in the record as Greek? If this is the case, then look at the following explanation : hwnd 32 of the window handle. Window can be any type of screen, because most of Win32 to maintain a handle visual objects (windows, dialog boxes, buttons, edit box, etc.). Message used to distinguish between other sources of regular money, These constants can be Windows modules predefined constants, it can also be a self-defined constants. WParam is usually a source with the regular money, it might be the window handle or control. LParam is usually a memory data at the target. As a W P a r m, l P a r m and a P i n o t r e are three-two,
    2022-02-27 09:28:32下载
    积分:1
  • 模拟飞机和导弹飞行
    这是一个基于OpenGL和MFC的3D模拟飞机和导弹飞行的程序(可在导弹和飞机之间切换)。画了一个简易的山地场景,有一些树木。导弹的尾焰比较形象。压缩文件包含了整个项目的头文件、源文件和各种资源文件,下载解压后即可在VS2010上运行。
    2022-03-23 09:18:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载