本文介绍了如何打开位图文件并使用C ++在其上绘制字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题:打开一个位图文件并用C ++语言在其上绘制一个字符串,你觉得这个吗?请帮我这样做,谢谢。
I have a problem: open a bitmap file and draw a string on it with C++ language, do you think about this? Please help me do this, thanks.
推荐答案
CImage i;
i.Load(_T("a.bmp"));
CDC cdc;
cdc.Attach(i.GetDC());
cdc.TextOut(_T("Hello world"),10,10);
cdc.Detach();
i.ReleaseDC();
这篇关于如何打开位图文件并使用C ++在其上绘制字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!