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