全心思齐网

c管立得如何画中心线?

private void pictureBox1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.DrawLine(new Pen(Color.Blue), pictureBox1.Width / 2, 0, pictureBox1.Width / 2, pictureBox1.Height); }

匿名回答于2023-09-20 09:03:13


相关知识问答