julz barrab

julz barrab

  • NA
  • 26
  • 0

Animated gif from embedded resource gif - doesnt work

Nov 27 2007 3:38 PM

Hi,

If i use an animated gif from the C drive my animation works fine

bmp = new Bitmap(@"C:\\cbJBsml.gif");
ImageAnimator.Animate(bmp, new EventHandler(this.OnFrameChanged));
this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);

However if i use the gif as en embedded resource (i want to do it this way so my application can be used from a single exe file) like so...

bmp = new Bitmap(GroupingGA.Properties.Resources.cbJBsml);

Then the image does not animate, why is this? is there a way around this?

Thanks in advance,
Jules