private void UpdateInputHistogram()
{
ImageSurface surface = PintaCore.Layers.CurrentLayer.Surface;
Gdk.Rectangle rect = PintaCore.Layers.SelectionPath.GetBounds ();
histogramInput.Histogram.UpdateHistogram (surface, rect);
UpdateOutputHistogram ();
}