Animated GIF display

SarahWard

Banned
How can I display an animated GIF image within a B4PPC form? I tried with the HTML Panel library but the animation doesn't seem to animate, it just shows frame 1.
 

sitajony

Active Member
Licensed User
Me too, on an imagebox or HTML it stay on the first frame...
I don't thing that this help you lol
 

specci48

Well-Known Member
Licensed User
Longtime User
As Erel mentioned in this post the .Net Compact Framework does not support animated gif. :sign0013:


specci48
 

SarahWard

Banned
As Erel mentioned in this post the .Net Compact Framework does not support animated gif. :sign0013:
specci48
Thanks. I am new to the forum and haven't read much beyond what I need for my programming.

It sounds like we need an animated GIF library to play the frames in these types of image files. It should not be tremendously hard to do as no audio is involved.
 

Cableguy

Expert
Licensed User
Longtime User
You CAN play flash files...seach the dorum for er in the dlls sub-forum....a flash play
 

SarahWard

Banned
You CAN play flash files...seach the dorum for er in the dlls sub-forum....a flash play
Hi CableGuy
Your Flash player/wrapper library is excellent work but it is for the desktop only.:sign0161:

I need something to display animations on the PPC. Everything I write is primarily for the PPC as it is such a useful computer compared to a laptop/PC.

It seems crazy to re-invent the wheel but it looks like I may have to create a program to make bespoke multi-frame animation files and display them. I need to be able to show frame by frame images for a new set of PPC programs I am considering to teach would-be pilots about aviation, airframes, instruments, meterology and so on. Flash animations would have been perfect as they are pretty much designed for that sort of thing.

Sarah
 
Last edited:

sitajony

Active Member
Licensed User
Maybe you can use the Webbrower library and write dynamicly "<img src='image.gif'/>" on an html file and show it on the Navigator direcly on your program...
 

agraham

Expert
Licensed User
Longtime User
How about a library that can return the individual frame images and delays from an animated GIF, specified as a filename, so you can use a Timer to animate them in an Image control?

Curiously I happen to have such a thing running at the moment :), but it needs some tidying before it can face the real world.

It should not be tremendously hard to do as no audio is involved.
Hmm, have you looked at the format of an animated GIF and the LZW decompression and image differencing algorithms required to decode the frames? Although I could do it, as I am in this for fun I wouldn't tackle that from scratch as it's a whole s**tload of work. However I found a buggy port of some Java code that I can tidy up and enjoy the fun bit without having to do the heavy lifting.
 
Last edited:

SarahWard

Banned
How about a library that can return the individual frame images and delays from an animated GIF, specified as a filename, so you can use a Timer to animate them in an Image control?

Curiously I happen to have such a thing running at the moment :), but it needs some tidying before it can face the real world.

Hmm, have you looked at the format of an animated GIF and the LZW decompression and image differencing algorithms required to decode the frames? Although I could do it, as I am in this for fun I wouldn't tackle that from scratch as it's a whole s**tload of work. However I found a buggy port of some Java code that I can tidy up and enjoy the fun bit without having to do the heavy lifting.

Ha Ha! Yes, Andrew, I did go online to look at the complexity of LZW decoding and the other complex stuff involved in animated GIF decoding and realised it was way beyond my ability or attention span! But your code for getting the frames and using a timer to dedisplay them is wonderful. Thanks.
 
Top