如何在C ++中以wmf格式存档导出OpenGL显示? [英] How export an OpenGL display in a wmf format archive in C++?

查看:95
本文介绍了如何在C ++中以wmf格式存档导出OpenGL显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一种使用C ++语言在wmf格式存档的OpenGL窗口中导出显示的方法吗?



有一个简单的方法吗?



谢谢很多。

PERE

I ask for a way for export a display in an OpenGL window in a wmf format archive using C++ language?

Is there an easy way?

THanks a lot.
PERE

推荐答案

我相信谢尔盖打算写得到它的DC。



无论如何,由于WMF几乎是一个GDI流(一个或多个序列化的GDI命令),我认为最简单,最明显的解决方案确实只是将渲染窗口中的内容blit到WMF DC(你从CreateEnhMetaFile获得的那个),但它没有任何意义,只能将其保存为BMP或PNG。
I believe Sergey intended to write "get its DC".

Anyway, since a WMF is pretty much a GDI-stream (one or more serialized GDI commands), I think the simplest and most obvious solution is to indeed just blit the contents from the rendered window onto the WMF DC (the one you got from CreateEnhMetaFile), but it would serve no purpose I can see vs. just saving it as a BMP or PNG.


这篇关于如何在C ++中以wmf格式存档导出OpenGL显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆