Wednesday 15 January 2014

winforms - C# How to stop animated gif from continually looping -


I have an event that is called when my app uses the internet This event is animated with 7 frames GIF changes How do I create a loop only through a frame?

  Private zero traffic transmission active (object sender, traffic EventArgs e) {txImage.image = Properties.Resources.blip; }    

You can use System.Drawing.ImageAnimator To start / stop GI Animation

  // Start System.Drawing.ImageAnimator.Animate (txImage.Image, OnFrameChanged); // stop system. Drawing Image Animator. StopAnimate (txImage.Image, OnFrameChanged); Private zero onfame changed (object sender, eventarges e) {// frame change}    

No comments:

Post a Comment