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
Copy constructor, uses reference counting.
Animation.new(%(arg-type)String% name, AnimationType type = ANIMATION_TYPE_ANY)Loads an animation from a file.
Returns the delay for the i-th frame in milliseconds.
If -1
is returned the frame is to be displayed forever.
Returns the number of frames for this animation.
Returns the i-th frame as a Image.
Returns the size of the animation.
Returns if animation data is present.
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. |
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 2023-06-03 08:07:35 +0000]