Example #1
0
        //------------------------------------------------------
        //
        //  Public Properties
        //
        //------------------------------------------------------

        private static void RadiusPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BlurBitmapEffect target = ((BlurBitmapEffect)d);


            target.PropertyChanged(RadiusProperty);
        }
 //==========================================================================
 public override BitmapEffect ToBitmapEffect()
 {
     BlurBitmapEffect blur_bitmap_effect = new BlurBitmapEffect();
       blur_bitmap_effect.Radius = StdDeviation.ToDouble();
       blur_bitmap_effect.KernelType = KernelType.Box;
       return blur_bitmap_effect;
 }
 public void addEfecto()
 {
     BlurBitmapEffect myBlurEffect = new BlurBitmapEffect();
     myBlurEffect.Radius = 2;
     myBlurEffect.KernelType = KernelType.Box;
     this.main.BitmapEffect = myBlurEffect;
 }
 public void QuitarEfecto()
 {
     BlurBitmapEffect myBlurEffect = new BlurBitmapEffect();
     myBlurEffect.Radius = 0;
     myBlurEffect.KernelType = KernelType.Box;
     main.BitmapEffect = myBlurEffect;
 }
Example #5
0
        private void applyBlurEffect()
        {
            // Initialize a new BlurBitmapEffect that will be applied
            // to the Button.
            BlurBitmapEffect myBlurEffect = new BlurBitmapEffect();

            // Set the Radius property of the blur. This determines how
            // blurry the effect will be. The larger the radius, the more
            // blurring.
            myBlurEffect.Radius = 15;

            // Set the KernelType property of the blur. A KernalType of "Box"
            // creates less blur than the Gaussian kernal type.
            myBlurEffect.KernelType = KernelType.Box;

            // Apply the bitmap effect to the Button.
            gamedeskCanvas.BitmapEffect = myBlurEffect;
            gamedeskOpponentCanvas.BitmapEffect = myBlurEffect;
            //gameDeskControlParent.BitmapEffect = myBlurEffect;
        }
Example #6
0
 public static Se.BlurBitmapEffect ToMediaBitmapEffect(this Wg.BlurEffect input)
 {
     Se.BlurBitmapEffect output = new Se.BlurBitmapEffect();
     output.Radius = input.Radius;
     return(output);
 }