コード例 #1
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     gifAnimation = new GifAnimation();
     gifAnimation.CreateGifAnimation(memoryStream);
     gifAnimation.Stretch          = Stretch;
     gifAnimation.StretchDirection = StretchDirection;
     this.AddChild(gifAnimation);
 }
コード例 #2
0
 private void DeletePreviousImage()
 {
     if (image != null)
     {
         this.RemoveLogicalChild(image);
         image = null;
     }
     if (gifAnimation != null)
     {
         this.RemoveLogicalChild(gifAnimation);
         gifAnimation = null;
     }
 }
コード例 #3
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     gifAnimation = new GifAnimation();
     gifAnimation.CreateGifAnimation(memoryStream);
     gifAnimation.Stretch = Stretch;
     gifAnimation.StretchDirection = StretchDirection;
     this.AddChild(gifAnimation);
 }
コード例 #4
0
 private void DeletePreviousImage()
 {
     if (image != null)
     {
         this.RemoveLogicalChild(image);
         image = null;
     }
     if (gifAnimation != null)
     {
         this.RemoveLogicalChild(gifAnimation);
         gifAnimation = null;
     }
 }
コード例 #5
0
ファイル: GifImage.xaml.cs プロジェクト: gaeeyo/Unene
 public GifImage()
 {
     InitializeComponent();
     gifAnimation = new GifAnimation();
 }