如何在图像上动态绘制文本? C ++ [英] How to draw text dynamically on image? C++
本文介绍了如何在图像上动态绘制文本? C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我需要在图像上写文字.有人可以帮我吗?我尝试使用静态文本控件,但看起来不是我应该使用的控件.
预先感谢
Hello,
I need to write text on image. Can somebody help me? I try to use static text control, but looks like it not what I should use.
Thanks in advance
推荐答案
如果您有位图,则需要使用CDC类并编写绘制文本的代码.没有控件会为您做到这一点.
If you have a bitmap, then you need to use the CDC class and write code that draws text. No control is going to do that for you.
例如,请参见在位图上绘制线条,形状或文本" [
See, for instance, "Drawing lines, shapes, or text on bitmaps" [^] article.
:)
非常感谢Christian的快速回复!
是的,我使用位图.您是否有示例如何使用CDC类编写文本?抱歉,如果我听起来很愚蠢,但我不是C ++程序员
Thanks a lot for quick response, Christian!!!
Yes, I use bitmap. Do you have example how to write text with CDC class? Sorry if I sound stupid, but I am not a C++ programmer
这篇关于如何在图像上动态绘制文本? C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文