【发布时间】:2015-03-01 19:43:30
【问题描述】:
Bitmap bmp = new Bitmap(300, 50);
Graphics gfx = Graphics.FromImage(bmp);
gfx.DrawString("Why I have black outer pixels?", new Font("Verdana", 14),
new SolidBrush(Color.White), 0, 0);
gfx.Dispose();
bmp.Save(Application.StartupPath + "\\test.png", ImageFormat.Png);
我需要文本完全是白色的。我尝试了不同的画笔,如 Brushes.White 等,但都不好。我能做些什么?所有文本像素必须是白色的,只是不透明度可以改变。
【问题讨论】:
标签: c# string graphics colors drawstring