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