将设备上下文绘制到电动势 [英] drawing a device context to an emf
本文介绍了将设备上下文绘制到电动势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将设备上下文绘制到emf文件.
how to draw a device context to an emf file.
推荐答案
尝试 ^ ]
您需要为增强型元文件创建设备上下文,然后您可以使用MetaFile设备上下文.您将要使用与您要绘制的内容兼容的设备上下文,例如从GetDC或BeginPaint调用获得的Window DC.
You will need to create a Device Context for an Enhanced Meta-File, then you can draw on the MetaFile Device Context. You will want to use a device context that is compatible to what you want to draw from, such as a Window DC from a call to GetDC or BeginPaint.
hdcMeta = ::CreateEnhMetaFile(hdc, _T("C:\\output.emf"), &rect, pDescription);
这篇关于将设备上下文绘制到电动势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文