如题。
非常感谢。

解决方案 »

  1.   

    这段代码楼主看看
    Graphics g = CreateGraphics();
                string txt = "Hello";
                float degree = -45.0f;
                FontFamily ff = new FontFamily("Times New Roman");
                Font font = new Font(ff,24,FontStyle.Regular);
                Point p = new Point(0,0);
                StringFormat sf = new StringFormat();
                sf.FormatFlags = StringFormatFlags.DirectionVertical;
    //            g.DrawString(txt, font, new SolidBrush(Color.Blue), p, sf);
                System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
                gp.AddString(txt, ff, (int)FontStyle.Bold, 30,p, sf);
                System.Drawing.Drawing2D.Matrix m = new System.Drawing.Drawing2D.Matrix();
                m.Rotate(degree);
                gp.Transform(m);
                g.DrawPath(Pens.Red, gp);可以画出一个旋转了45度的string。
      

  2.   

    你可以随便新建一个项目,拖入一个button,然后在button的点击事件里将这段代码贴进去,你就可以看到了。(可能根据情况,p的位置要作下调整,比如Point p = new Point(100,150);