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);
C#在图片上添加文字
猜你喜欢
转载自1175319258.iteye.com/blog/2158957
今日推荐
周排行