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#在图片上添加文字
最新推荐文章于 2026-05-13 09:38:29 发布

4506

被折叠的 条评论
为什么被折叠?



