예제 #1
0
 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);
     }
 }
예제 #2
0
 private void sliderMotionblurOffset_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     this.image.Source = MotionblurEffect.MotionblurProcess(this.wb, System.Convert.ToInt32(e.NewValue), direction);
 }