This class encapsulates the concept of a platform-dependent animation. An animation is a sequence of frames of the same size. Sound is not supported by Animation. To display an animation on screen, use AnimationCtrl
Wx::NULL_ANIMATION
Animation.new(Animation anim)
Copy constructor, uses reference counting.
Animation.new(String name, AnimationType type = ANIMATION_TYPE_ANY)
Loads an animation from a file.
Integer get_delay(unsigned int i)
Returns the delay for the i-th frame in milliseconds.
If -1 is returned the frame is to be displayed forever.
unsigned int get_frame_count()
Returns the number of frames for this animation.
Image get_frame(unsigned int i)
Returns the i-th frame as a Image.
Size get_size()
Returns the size of the animation.
Boolean is_ok()
Returns if animation data is present.
Boolean load(InputStream stream, AnimationType type = ANIMATION_TYPE_ANY)
Loads an animation from the given stream. This is not currently supported in wxRuby.
| ANIMATION_TYPE_GIF | Load an animated GIF file. |
| ANIMATION_TYPE_ANI | Load an ANI file. |
| ANIMATION_TYPE_ANY | Try to autodetect the filetype. |
if the operation succeeded, otherwise.
Boolean load_file(String name, AnimationType type = ANIMATION_TYPE_ANY)
Loads an animation from a file.
| ANIMATION_TYPE_GIF | Load an animated GIF file. |
| ANIMATION_TYPE_ANI | Load an ANI file. |
| ANIMATION_TYPE_ANY | Try to autodetect the filetype. |
true if the operation succeeded, false otherwise.
[This page automatically generated from the Textile source at Thu May 01 00:50:32 +0100 2008]