示例#1
0
文件: Form1.cs 项目: srypous/PG1Grcis
        /// <summary>
        /// Recomputes the histogram window (forces input image pass).
        /// </summary>
        private void recompute()
        {
            if (inputImage == null)
            {
                return;
            }

            pictureBox1.Image = (Bitmap)inputImage;
            param             = textParam.Text;

            if (histogramForm == null)
            {
                histogramForm = new HistogramForm(this);
                histogramForm.Show();
            }
            else
            {
                histogramForm.Invalidate();
            }

            histogramForm.Text = "Histogram (" + fileName + ')';
            dirtyRedraw        = true;
        }
示例#2
0
文件: Form1.cs 项目: maoap1/grcis-1
        /// <summary>
        /// Recomputes the histogram window (forces input image pass).
        /// </summary>
        private void recomputeHistogram()
        {
            if (inputImage == null)
            {
                return;
            }

            dirty             = true;
            pictureBox1.Image = inputImage;
            param             = textParam.Text;

            if (histogramForm == null)
            {
                histogramForm = new HistogramForm(this);
                histogramForm.Show();
            }
            else
            {
                histogramForm.Invalidate();
            }

            histogramForm.Text = "Histogram (" + fileName + ", " + inputImage.PixelFormat.ToString() + ')';
            labelStatus.Text   = Path.GetFileName(fileName);
        }
示例#3
0
文件: Form1.cs 项目: pepouch/PG1Grcis
        /// <summary>
        /// Recomputes the histogram window (forces input image pass).
        /// </summary>
        private void recompute()
        {
            if ( inputImage == null ) return;

              pictureBox1.Image = (Bitmap)inputImage;
              param = textParam.Text;

              if ( histogramForm == null )
              {
            histogramForm = new HistogramForm( this );
            histogramForm.Show();
              }
              else
            histogramForm.Invalidate();

              histogramForm.Text = "Histogram (" + fileName + ')';
              dirtyRedraw = true;
        }