Beispiel #1
0
        private void LoadRound(string filePath)
        {
            var imageSource = new BitmapImage(new Uri(filePath));

            Animation      = CreateAnimation();
            RoundStartTime = DateTime.Now;
            PixelateEffect.BeginAnimation(PixelateEffect.SizeInPixelsProperty, Animation);
            Image = imageSource;
        }
Beispiel #2
0
 private void OnImageSizeChanged(object sender, SizeChangedEventArgs sizeChangedEventArgs)
 {
     if (Animation != null)
     {
         Animation           = CreateAnimation();
         Animation.BeginTime = -(DateTime.Now - RoundStartTime);
         PixelateEffect.BeginAnimation(PixelateEffect.SizeInPixelsProperty, Animation);
     }
 }