private void afterHistPanel_Paint(object sender, PaintEventArgs e) { grayByte = new byte[pImage.MBWidth * pImage.MHeight]; Graphics g = e.Graphics; Point[] pointArray = new Point[3]; pointArray[0] = new Point(250, 300); pointArray[1] = new Point(250, 20); pointArray[2] = new Point(20, 300); Pen linePen = new Pen(Color.Black); linePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid; linePen.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor; g.DrawLine(linePen, pointArray[0], pointArray[1]); g.DrawLine(linePen, pointArray[0], pointArray[2]); getImageByte(); if (radioButton1.Checked == true) { HistCalculation(); afterHistDraw(e.Graphics); //C#数组传值传不进? } if (radioButton3.Checked == true) { grayByte = pImage.grayTransform(grayByte, (int)numericUpDown1.Value, (int)numericUpDown2.Value, (int)numericUpDown3.Value, (int)numericUpDown4.Value); HistCalculation(); afterHistDraw(e.Graphics); } }