private void gammaValue_TextChanged(object sender, EventArgs e)
        {
            double value;

            if (Synchronization.IsValueValid(gammaValue.Text, 0.0025, 7.99, out value))
            {
                gammaTrackBar.Value = ComputeGammaTrackBarValue(value);
            }
        }
        private void exposureValue_TextChanged(object sender, EventArgs e)
        {
            double value;

            if (Synchronization.IsValueValid(exposureValue.Text, -2, 2, out value))
            {
                exposureTrackBar.Value = (int)(value * 100);
            }
        }
        private void intensityValue_TextChanged(object sender, EventArgs e)
        {
            int value;

            if (!Synchronization.IsValueValid(intensityValue.Text, 1, maximalIntensity, out value))
            {
                return;
            }

            if (value == 1)
            {
                OnProcessingCompleted(input);
                return;
            }

            customFilter.SetUp(value);
            Bitmap preview = new Bitmap(input);

            preview = adjustment(preview);
            OnProcessingCompleted(preview);
        }