Exemplo n.º 1
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     gifAnimation = new GifAnimation();
     gifAnimation.CreateGifAnimation(memoryStream);
     gifAnimation.Stretch          = Stretch;
     gifAnimation.StretchDirection = StretchDirection;
     AddChild(gifAnimation);
 }
Exemplo n.º 2
0
 private void DeletePreviousImage()
 {
     if (image != null)
     {
         RemoveLogicalChild(image);
         image = null;
     }
     if (gifAnimation != null)
     {
         RemoveLogicalChild(gifAnimation);
         gifAnimation = null;
     }
 }
Exemplo n.º 3
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     gifAnimation = new GifAnimation();
     gifAnimation.CreateGifAnimation(memoryStream);
     gifAnimation.Stretch = Stretch;
     gifAnimation.StretchDirection = StretchDirection;
     AddChild(gifAnimation);
 }
Exemplo n.º 4
0
 private void DeletePreviousImage()
 {
     if (image != null)
     {
         RemoveLogicalChild(image);
         image = null;
     }
     if (gifAnimation != null)
     {
         RemoveLogicalChild(gifAnimation);
         gifAnimation = null;
     }
 }