[点晴永久免费OA]C#中怎么压扁字体
|
admin
2022年12月22日 18:7
本文热度 704
|
m.Scale(1f, 0.2f); //压扁
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
-
GraphicsPath path = new GraphicsPath();
-
StringFormat strformat = new StringFormat();
-
strformat.Alignment = StringAlignment.Center;
-
strformat.LineAlignment = StringAlignment.Center;
-
path.AddString("中国", new FontFamily("黑体"), (int)this.Font.Style, 100f, new Point(10, 10), strformat);
-
-
-
-
-
e.Graphics.FillPath(new SolidBrush(Color.Red), path);
该文章在 2022/12/22 18:07:55 编辑过