pe.Graphics.RotateTransform (_angle);
解决方案 »
- 高分求解!!!IE在切换选项卡时地址栏值是怎么改变的
- Address.txt正在被另外一个进程使用,因此该进程不能访问该文件
- 请问在WEB下的DATAGRID怎么实现两层页眉啊?
- Oracle数据库字段类型的问题!
- 怎样在ListView控件中显示每个文件自带的图标?
- 求四叉树分级 切图算法
- 请问:在程序中合成了sql语句,如何检查预先检查语法?
- 《C# Windows程序设计》上的饼图“爆炸”效果的偏移量是怎么得到的?
- 请教一个ADO.NET 访问数据库的问题
- 一个dll的如何来判断它所在的目录哪?
- ADO.NET调用存储过程时,用什么办法把参数加到Command 对象,是Oracle!
- 更换目录或更名是在操作文件分配表,如何操作??
{
e.Graphics.FillRectangle(Brushes.White, e.ClipRectangle); Font f = new Font ("Arial", 10); // Move the origin to the middle of the window:
System.Drawing.Size sz = TextArea.Size;
Point Middle = new Point (sz.Width / 2, sz.Height / 2);
e.Graphics.TranslateTransform (Middle.X, Middle.Y);
// Apply all transforms.... e.Graphics.RotateTransform (_angle);
// Create a new StringFormat object to
StringFormat format = new StringFormat (StringFormatFlags.NoClip);
format.Alignment = StringAlignment.Center;
format.LineAlignment = StringAlignment.Center;
e.Graphics.DrawString ("A simple TextString ", f, Brushes.Black, 0, 0,
format);
}