]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/animate/readme.txt
Patch #808669 more warngins and unicode fixes
[wxWidgets.git] / contrib / src / animate / readme.txt
CommitLineData
4638d697
JS
1Animation sample
2================
3
4Every now and then someone asks whether there are animation
5classes in wxWindows. I started these animation player classes
6nearly two years ago and never got round to finishing them.
7Now I've done some hacking on them and (after very limited testing)
8it seems to work on Windows for animated GIFs, both transparent
9and non-transparent.
10
11Basically the classes makes use of the existing GIF decoder in
12wxWindows to read an animated GIF into wxGIFAnimation, and then
46d0e4b2
JS
13play that animation using wxAnimationPlayer. It's quite tied
14to the animated GIF way of doing animation, so don't expect anything too generic.
4638d697
JS
15However, it would be quite possible to write code to convert an animated
16GIF into a PNG-based invented format, and then write a wxPNGAnimation
17handler.
18
19The next steps are:
20
211. Test on other platforms.
222. Write control classes to make it easy to embed animations in dialogs, etc.
23 See my thoughts in animate.h.
243. Write documentation.
25
26*** IMPORTANT NOTE: to compile this, you must first edit the
27file:
28
29include/wx/gifdecod.h
30
31and change the keyword 'protected' to 'public', then recompile
32wxWindows. If you have downloaded the latest code from the CVS trunk,
33the problem has been corrected already.
34
46d0e4b2
JS
35As an exercise, you might like to write a handler for the
36PNG-based animation format:
37
38http://www.libpng.org/mng/
39http://www.libmng.com/
40
4638d697 41Julian Smart, 5th July 2001