C#在图片上添加文字

Bitmap bmp = new Bitmap(filename);
Graphics g
=
Graphics.FromImage(bmp);
String str
= "hello, string"
;
Font font
= new Font("宋体"8
);
SolidBrush sbrush
= new
SolidBrush(Color.Black);
g.DrawString(str, font, sbrush,
new PointF(1010
));
MemoryStream ms
= new
MemoryStream();
bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);

posted @ 2014-06-14 22:56  zzg168  阅读(342)  评论(0)    收藏  举报