c#画线Graphics
摘要:
简单的画线,郁闷了我好几天在panel和pictureBox中的画法都是一样的public void pictureBox1_ht()//画图的简单方法{Graphics g = pictureBox1.CreateGraphics();g.DrawLine(new Pen(Color.Red, 2), x, 20, x, 40);}private void button2_Click(object sender, EventArgs e){ x = Convert.ToInt32(textBox1.Text); y = Convert.ToInt32(textBox1.Text); pict 阅读全文
posted @ 2012-01-29 20:06 疏林如画 阅读(17391) 评论(0) 推荐(0) 编辑