- 博客(4)
- 收藏
- 关注
原创 矩形和区域
1. 使用Rectangle结构体的方法 private void MethodsMenu_Click(object sender, System.EventArgs e) { // Create a Graphics object Graphics g = this.CreateGraphics();
2008-03-16 19:50:00 908
原创 颜色、字体和文本
添加命名空间using System.Drawing.Text; 添加两个类型分别为Color和int的私有变量: private Color textColor; private int textSize; 双击窗体,插入load事件,从而将NumericUpDown控件的Value属性设置为10,并在组合框控件中添加所有已安装的字体。priva
2008-03-16 19:48:00 342
原创 使用画笔和钢笔
1. 阴影画笔 HatchBrush hBrush1 = new HatchBrush (HatchStyle.DashedVertical, Color.Chocolate, Color.Red); HatchBrush hBrush2 = new H
2008-03-16 19:47:00 403
原创 Graphics类
一:Graphics类的方法1. 绘制方法绘制椭圆private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g = e.Graphics ; // Create pens Pen redPen
2008-03-16 19:45:00 636
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人