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);
        }
 private void blueTrackBar_Scroll(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTextBox(blueValue, blueTrackBar);
 }
 private void greenTrackBar_Scroll(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTextBox(greenValue, greenTrackBar);
 }
 private void redTrackBar_Scroll(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTextBox(redValue, redTrackBar);
 }
 private void blueValue_TextChanged(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTrackBar(blueTrackBar, blueValue);
 }
 private void greenValue_TextChanged(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTrackBar(greenTrackBar, greenValue);
 }
 private void redValue_TextChanged(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTrackBar(redTrackBar, redValue);
 }
Ejemplo n.º 8
0
 private void brightnessValue_TextChanged(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTrackBar(brightnessTrackBar, brightnessValue);
 }
Ejemplo n.º 9
0
 private void contrastValue_TextChanged(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTrackBar(contrastTrackBar, contrastValue);
 }
Ejemplo n.º 10
0
 private void contrastTrackBar_Scroll(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTextBox(contrastValue, contrastTrackBar);
 }
Ejemplo n.º 11
0
 private void brightnessTrackBar_Scroll(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTextBox(brightnessValue, brightnessTrackBar);
 }
 private void thresholdTrackBar_Scroll(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTextBox(thresholdValue, thresholdTrackBar);
 }
 private void thresholdValue_TextChanged(object sender, EventArgs e)
 {
     Synchronization.SynchronizeTrackBar(thresholdTrackBar, thresholdValue);
 }