예제 #1
0
파일: GifImage.cs 프로젝트: jswxharry/WPF
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     _gifAnimation = new GifAnimation();
     _gifAnimation.CreateGifAnimation(memoryStream);
     _gifAnimation.Stretch          = Stretch;
     _gifAnimation.StretchDirection = StretchDirection;
     AddChild(_gifAnimation);
 }
예제 #2
0
파일: GifImage.cs 프로젝트: jswxharry/WPF
 private void DeletePreviousImage()
 {
     if (_image != null)
     {
         RemoveLogicalChild(_image);
         _image = null;
     }
     if (_gifAnimation != null)
     {
         RemoveLogicalChild(_gifAnimation);
         _gifAnimation = null;
     }
 }