コード例 #1
0
ファイル: GifImage.cs プロジェクト: hx215267863/src
 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);
 }
コード例 #2
0
ファイル: GifImage.cs プロジェクト: hx215267863/src
 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;
 }