在位图上写字母 [英] To write Alphabet letter on Bitmap
本文介绍了在位图上写字母的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用.net 3.5.
我已经完全隐含了位图,它看起来像饼图的1/4部分,但是我想在该图上的特定位置显示一个字母.我该怎么做???
谢谢与问候
Yogesh
Hi all,
I am using .net 3.5.
I had allready implimented the bitmap wich look like 1/4 part of piechart but i want to show a single alphabet inside that diagram on specific position.How Can i do this????
Thanks & Regards
Yogesh
推荐答案
假定您具有Bitmap Graphics对象(绘制饼图后应该使用该对象),然后使用 ^ ]
如果不这样做,可以使用
Assuming you have the Bitmap Graphics object (which you should, having drawn the pie chart), then use the Graphics.DrawText method[^]
If you don''t, you can get it with
using (Graphics g = myBitmap.FromImage())
{
...Draw your text...
}
这篇关于在位图上写字母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文