Image B = new Bitmap(200, 200); Graphics G2 = Graphics.FromImage(B); System.Drawing.StringFormat sf = new System.Drawing.StringFormat(); sf.FormatFlags = StringFormatFlags.DirectionVertical; //sf.Alignment = StringAlignment.Center; //sf.LineAlignment = StringAlignment.Center; string DispChar = memoEdit1.EditValue == null ? "空字符" : memoEdit1.EditValue.ToString().Trim(); G2.DrawString(DispChar, this.Font, Brushes.Red, new Point(0, 0), sf); pictureEdit1.Image = B;
可以画图,填入字符显示如下
想字体从下向上,不是从顶端向下 怎么调整
谢谢
解决方案
60
sf.Alignment = StringAlignment.Far
y的位置要大一点
y的位置要大一点
20
哪样?