![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GDI+学习笔记
文章平均质量分 78
sharefeld
我们每个人都有改变自己命运的可能。选择倾听向我们传来的信息或是转身离开,将决定我们能在多大程度上改变自己与其它生命的未来。
展开
-
使用画笔和钢笔
1. 阴影画笔 HatchBrush hBrush1 = new HatchBrush (HatchStyle.DashedVertical, Color.Chocolate, Color.Red); HatchBrush hBrush2 = new H原创 2008-03-16 19:47:00 · 400 阅读 · 0 评论 -
颜色、字体和文本
添加命名空间using System.Drawing.Text; 添加两个类型分别为Color和int的私有变量: private Color textColor; private int textSize; 双击窗体,插入load事件,从而将NumericUpDown控件的Value属性设置为10,并在组合框控件中添加所有已安装的字体。priva原创 2008-03-16 19:48:00 · 342 阅读 · 0 评论 -
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 · 630 阅读 · 0 评论 -
矩形和区域
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 · 904 阅读 · 0 评论