예제 #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;
        }