• <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桌面截图

        efficiently acquiring a screenshot of the windows desktop(高效获取windows桌面截图)

          <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++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)
                  C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)
                  Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)
                  Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)
                  What is a dangling reference?(什么是悬空引用?)
                  C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)
                • <tfoot id='LOmRy'></tfoot>
                    • <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>
                          <tbody id='LOmRy'></tbody>