C# 怎么给图片增加白底黑字
C# 怎么给图片增加白底黑字
Image bmp = Bitmap.FromStream(ms, true); int iHeight = bmp.Height; int iWidth = bmp.Width; Graphics g = Graphics.FromImage(bmp); g.DrawString(sDesc1, new Font("宋体", 32, FontStyle.Bold), Brushes.White, new PointF(10, 20)); g.DrawString(sDesc2, new Font("宋体", 32, FontStyle.Bold), Brushes.White, new PointF(10, iHeight - 150)); ms = new MemoryStream(); bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);