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