我正在使用Visual C#。在图片上叠加文字时,如何设置字体颜色?
graphicsImage.DrawString(textBox1.Text,
new Font("Arial", 12, FontStyle.Bold)
SystemBrushes.WindowText, new Point(10, 210));
尝试像这样使用SolidBrush,您将获得红色字体:
graphicsImage.DrawString(textBox1.Text, new Font("Arial", 12, FontStyle.Bold), new SolidBrush(Color.Red), new Point(10, 210));
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句