Exemple #1
0
 private void trackBrightness_ValueChanged(object sender, EventArgs e)
 {
     this.numericBrightness.Value = this.trackBrightness.Value;
     edited_current      = small_current.change_brightness(Convert.ToInt32(this.numericBrightness.Value));
     edited_current      = edited_current.change_contrast(Convert.ToInt32(this.numericContrast.Value));
     this.Adjusted.Image = edited_current.get_bitmap();
 }
Exemple #2
0
 private void buttonOK_Click(object sender, EventArgs e)
 {
     try
     {
         current_image = current_image.change_brightness(Convert.ToInt32(this.numericBrightness.Value));
         current_image = current_image.change_contrast(Convert.ToInt32(this.numericContrast.Value));
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }