private void tbBrightnessValue_Scroll(object sender, EventArgs e) { BrightnessHandler bh = new BrightnessHandler(); pbPicture.Image = bh.toBright(files.getSelectedImage(), tbBrightnessValue.Value); }
private void sBrightness_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { BrightnessHandler bh = new BrightnessHandler(); applyChanges(bh.toBright(files.getSelectedImage(), (float)sBrightness.Value)); }