private void 图像处理toolStripMenuItem_Click(object sender, EventArgs e) { pnlmain.Controls.Clear(); PictureProcess pp = new PictureProcess(null); pp.TopLevel = false; pp.Dock = System.Windows.Forms.DockStyle.Fill; pp.FormBorderStyle = FormBorderStyle.None; pnlmain.Controls.Add(pp); pp.Show(); }
private void 打开原始图片ToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { Image <Bgr, Byte> img1 = new Image <Bgr, Byte>(ofd.FileName); pnlmain.Controls.Clear(); PictureProcess pp = new PictureProcess(img1.ToBitmap()); pp.TopLevel = false; pp.Dock = System.Windows.Forms.DockStyle.Fill; pp.FormBorderStyle = FormBorderStyle.None; pnlmain.Controls.Add(pp); pp.Show(); } }