Ejemplo n.º 1
0
 private void histogramMenuItem_Click(object sender, EventArgs e)
 {
     if (Histogram != null && histogramMenuItem.Checked == false)
     {
         histogramMenuItem.Checked = true;
         Histogram.Show(DockingPanel, DockState.DockBottom);
     }
     else if (Histogram != null && histogramMenuItem.Checked == true)
     {
         histogramMenuItem.Checked = false;
         Histogram.Close();
     }
     else
     {
         Histogram = new FrmHistogram();
         histogramMenuItem.Checked = true;
         Histogram.Show(DockingPanel, DockState.DockBottom);
     }
 }
Ejemplo n.º 2
0
        private void MenuHistogram_Click(object sender, EventArgs e)
        {
            FrmHistogram frmHistogram = new FrmHistogram(mCurrentImage);

            frmHistogram.ShowDialog();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 显示直方图
        /// </summary>
        private void BtnHistogram_Click(object sender, EventArgs e)
        {
            FrmHistogram frmHistogram = new FrmHistogram(mImgSource);

            frmHistogram.ShowDialog();
        }