后台动态替换图片

13年前
   void ChangeImage()
        {
            BitmapImage image = new BitmapImage();
            image.BeginInit();
            image.UriSource = new Uri("pack://application:,,,/UpdateFTP;component/Image/shucu803.jpg", UriKind.Absolute);
            image.DecodePixelWidth = 32;
            image.EndInit();
            img_AD.Source = image;
        }