如题。
非常感谢。
非常感谢。
解决方案 »
- 帮忙看看是什么错误啊
- 2005,winform 用了一个简单的水晶报表,不知打包和部署时需要加入哪些东西,怎样做?请帮忙。
- 关于模式窗体的问题?(急)
- 在vb.net asp.net里怎么建立或删除在硬盘的文件或文件夹?急!!!
- 如何动态调整LISTVIEW列宽
- 请问微软的例子duwamish 和 petshop 哪个简单些?对初学asp.net三层结构的人帮助大些。为什么啊?
- 程序最小化到系统栏的问?
- 我在用DATAGRID分页
- 调查一下:大家在实际工作中有多少是采用多层模式开发的?
- 请教一个Stream的问题:
- 怎样将一串字符画在一个圆周上,并且字符都是旋转对准圆的中心点的?
- CS中连接主机问题(100分全给了)
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。