private void comboBoxMotionblurDirection_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (comboBoxMotionblurDirection != null) { direction = comboBoxMotionblurDirection.SelectedIndex + 1; this.image.Source = MotionblurEffect.MotionblurProcess(this.wb, System.Convert.ToInt32(sliderMotionblurOffset.Value), direction); } }
private void sliderMotionblurOffset_ValueChanged(object sender, RangeBaseValueChangedEventArgs e) { this.image.Source = MotionblurEffect.MotionblurProcess(this.wb, System.Convert.ToInt32(e.NewValue), direction); }