如何在 C++ 中创建由 MSHTML 渲染的网页的 direct3d 纹理?

发布于 2024-09-14 13:26:08 字数 159 浏览 1 评论 0原文

我通过 MSHTML(IE 的 Microsoft 渲染引擎)在我的本机 C++ 应用程序中集成了一个网页。

我现在要做的是生成显示网页的LPDIRECT3DTEXTURE9(Direct3d纹理)。

是否可以 ? 你知道怎么做吗?

预先感谢您的所有回答。

I have integrated a web page inside my native C++ Application through MSHTML (Microsoft Rendering engine of IE).

What I want to do now is to generate a LPDIRECT3DTEXTURE9 (Direct3d texture) of the displayed web page.

Is it possible ?
Do you know how to ?

Thanks in advance for all your answers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

停顿的约定 2024-09-21 13:26:08

您是否需要捕获渲染网页的“可见”部分或整个网页,无论长度/宽度如何?

如果是后者,Rob Manderson 写了一篇关于使用 IHTMLElementRender 接口实现此目的的好文章。他的文章可以在这里找到: http://www.codeproject.com/KB/IP /htmlimagecapture.aspx

如果您只是对“窗口捕获”浏览器窗口中可见内容的位图感兴趣,您可以获取窗口的 HDC,调用 BitBlt() 将内容复制出来。

Do you need to capture the 'visible' portion of a rendered webpage, or the entire webpage, regardless of length/width?

If its the latter, Rob Manderson wrote a good article on achieving this with the IHTMLElementRender interface. His article can be found here: http://www.codeproject.com/KB/IP/htmlimagecapture.aspx

If you're simply interested in 'window capturing' a bitmap of what would be visible in a browser window, you can get hold of the window's HDC, call BitBlt() to copy the contents out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文