public Form1()
{
InitializeComponent();
Graphics gc = this.CreateGraphics();
this.Show();
gc.RotateTransform(50);
gc.DrawString("AAAA", new Font("MS Gothic", 9), Brushes.Black, 200, 10);
}
不知道RotateTransform怎么用,希望高手指点一下,我想把字体逆时针旋转90度
解决方案 »
- 如何为当前项目加入新字体
- 向数据库添加信息,如何在dataGridView中显示出来
- 那里能找到一个C#写的msn机器人
- 问问大家,有关datagridview控件的自定义列的问题?
- vs.net(winform)如何连接mysql数据库?
- (100分) 请问C#中窗体的close ,dispose,以及application.exit(),他们有什么区别呀`~谢啦~~
- 有关datagrid的问题
- 请问大家写过这样的程序代码没有?
- ○这个能做到吗?
- 给分200,求Together for vs.net的注册机(就是没有时间限制的),谁给我享受100分,其他人分别也给分。
- 我想把我生成的CSV文件都保存的服务器上,代码如何实现
- 诚信想结识懂三层c/s开发的朋友。qq807076323
using System.Windows.Forms;class Test : Form
{
static void Main()
{
Application.Run(new Test());
}
protected override void OnPaint(PaintEventArgs e)
{
System.Drawing.Graphics g = e.Graphics;
Rectangle r = new Rectangle(10, 10, 200, 200);
g.TranslateTransform(10, 220);
g.RotateTransform(270);
g.DrawRectangle(new Pen(Color.Red, 1), r);
g.DrawString("四度空间", new Font("宋体", 30), new SolidBrush(Color.Blue), r);
}
}
using System.Drawing;
using System.Windows.Forms;class Test : Form
{
static void Main()
{
Application.Run(new Test());
}
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawString("四度空间", new Font("宋体", 30), Brushes.Blue,
10, 10, new StringFormat(StringFormatFlags.DirectionVertical));
}
}