Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /// <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;
        }