/// <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; }
/// <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); }