private void button1_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); g.Clear(Color.White); Pen curPen = new Pen(Brushes.Black, 1); //g.DrawLine(curPen, 10, 0, 10, 30); //划线 ; (10,30) 水平坐标形同 10,0, 10,30; int[] y = { 10, 20, 30,