wx.adv.AnimationDecoder is used by wx.adv.Animation for loading frames and other information for the animation from the animation image file.
wx.adv.ANIDecoder, wx.adv.GIFDecoder
Returns |
|
Create a copy of this decoder. |
|
Convert given frame to wx.Image. |
|
Checks the signature of the data in the given stream and returns |
|
Return the number of milliseconds this frame should be displayed. |
|
What should be done after displaying this frame. |
|
The transparent colour for this frame, if any, or |
|
Return the animation type this decoder implements. |
|
Load the animation image frames from the given stream. |
See |
|
See |
|
See |
Possible constructors:
AnimationDecoder() -> None
AnimationDecoder is used by Animation for loading frames and other information for the animation from the animation image file.
None
Returns True
if this decoder supports loading from the given stream.
stream (wx.InputStream)
bool
Create a copy of this decoder.
Convert given frame to wx.Image.
frame (int)
image (wx.Image)
bool
Checks the signature of the data in the given stream and returns True
if it appears to be a valid animation format recognized by the animation decoder; this function should modify the stream current position without taking care of restoring it since CanRead
will do it.
stream (wx.InputStream)
bool
Size
Colour
Return the number of milliseconds this frame should be displayed.
If -1 is returned then the frame must be displayed forever.
frame (int)
int
What should be done after displaying this frame.
frame (int)
int
frame (int)
Point
frame (int)
Size
The transparent colour for this frame, if any, or NullColour
.
frame (int)
Colour
Return the animation type this decoder implements.
Load the animation image frames from the given stream.
stream (wx.InputStream)
bool
See GetAnimationSize
See GetFrameCount