• <i id='K7mah'><tr id='K7mah'><dt id='K7mah'><q id='K7mah'><span id='K7mah'><b id='K7mah'><form id='K7mah'><ins id='K7mah'></ins><ul id='K7mah'></ul><sub id='K7mah'></sub></form><legend id='K7mah'></legend><bdo id='K7mah'><pre id='K7mah'><center id='K7mah'></center></pre></bdo></b><th id='K7mah'></th></span></q></dt></tr></i><div id='K7mah'><tfoot id='K7mah'></tfoot><dl id='K7mah'><fieldset id='K7mah'></fieldset></dl></div>
      <bdo id='K7mah'></bdo><ul id='K7mah'></ul>

    1. <small id='K7mah'></small><noframes id='K7mah'>

      <legend id='K7mah'><style id='K7mah'><dir id='K7mah'><q id='K7mah'></q></dir></style></legend>

        <tfoot id='K7mah'></tfoot>

        高效获取windows桌面截图

        时间:2023-12-02

          <legend id='fMTYd'><style id='fMTYd'><dir id='fMTYd'><q id='fMTYd'></q></dir></style></legend>

              <small id='fMTYd'></small><noframes id='fMTYd'>

            1. <i id='fMTYd'><tr id='fMTYd'><dt id='fMTYd'><q id='fMTYd'><span id='fMTYd'><b id='fMTYd'><form id='fMTYd'><ins id='fMTYd'></ins><ul id='fMTYd'></ul><sub id='fMTYd'></sub></form><legend id='fMTYd'></legend><bdo id='fMTYd'><pre id='fMTYd'><center id='fMTYd'></center></pre></bdo></b><th id='fMTYd'></th></span></q></dt></tr></i><div id='fMTYd'><tfoot id='fMTYd'></tfoot><dl id='fMTYd'><fieldset id='fMTYd'></fieldset></dl></div>
                <tbody id='fMTYd'></tbody>

            2. <tfoot id='fMTYd'></tfoot>

                  <bdo id='fMTYd'></bdo><ul id='fMTYd'></ul>
                  本文介绍了高效获取windows桌面截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否有比下面的代码更有效的方式来获取 Windows 桌面的副本(使用 GDI 或任何其他库)

                  Is there a more efficient way of getting a copy of the windows desktop ( using GDI or any other library ) than the code below

                  HDC      dcDesktop;
                  HDC         dcMem;
                  HBITMAP     hbmpMem;
                  HBITMAP     hOriginal;
                  BITMAP      bmpDesktopCopy;
                  
                  dcDesktop   = GetDC( GetDesktopWindow() ); 
                  dcMem       = CreateCompatibleDC( dcDesktop );
                  hbmpMem     = CreateCompatibleBitmap( dcMem, m_lWidth, m_lHeight );
                  
                  BitBlt( dcMem, 0, 0, m_lWidth, m_lHeight, dcDesktop, 0, 0, SRCCOPY );
                  
                  // Copy the hbmpMem to the desktop copy
                  GetObject(hbmpMem, sizeof(BITMAP), (LPSTR)&bmpDesktopCopy);
                  

                  推荐答案

                  http://www.codeproject.com/KB/dialog/screencap.aspx

                  此页面有几种不同的截屏方式.他们使用的 DirectX 方法似乎很简单.

                  This page has a couple different ways to take screenshots. The DirectX method they use seems simple enough.

                  除了那篇文章中提到的内容之外,我认为没有比这更有效的方法来捕获桌面了.

                  Aside from what's mentioned in that article, I don't think there's any more an efficient method of capturing the desktop.

                  这篇关于高效获取windows桌面截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:C++ gdi::Bitmap to PNG Image in memory 下一篇:如何比 SetPixel() 更快地从原始 RGB 值数组直接在屏幕上显示像素?

                  相关文章

                • <tfoot id='LOmRy'></tfoot>
                  1. <i id='LOmRy'><tr id='LOmRy'><dt id='LOmRy'><q id='LOmRy'><span id='LOmRy'><b id='LOmRy'><form id='LOmRy'><ins id='LOmRy'></ins><ul id='LOmRy'></ul><sub id='LOmRy'></sub></form><legend id='LOmRy'></legend><bdo id='LOmRy'><pre id='LOmRy'><center id='LOmRy'></center></pre></bdo></b><th id='LOmRy'></th></span></q></dt></tr></i><div id='LOmRy'><tfoot id='LOmRy'></tfoot><dl id='LOmRy'><fieldset id='LOmRy'></fieldset></dl></div>

                      <bdo id='LOmRy'></bdo><ul id='LOmRy'></ul>

                    <small id='LOmRy'></small><noframes id='LOmRy'>

                    <legend id='LOmRy'><style id='LOmRy'><dir id='LOmRy'><q id='LOmRy'></q></dir></style></legend>