wx.adv.ANIDecoder¶An animation decoder supporting animated cursor (.ani) files.
Class Hierarchy¶
Inheritance diagram for class ANIDecoder:
Methods Summary¶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. |
Properties Summary¶See |
Class API¶wx.adv.ANIDecoder(AnimationDecoder)¶Possible constructors:
ANIDecoder() -> None
An animation decoder supporting animated cursor (.ani) files.
__init__(self)¶None
Clone(self)¶Create a copy of this decoder.
ConvertToImage(self, frame : int, image : Image)¶Convert given frame to wx.Image.
frame (int) –
image (wx.Image) –
bool
DoCanRead(self, stream : InputStream)¶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
GetDelay(self, frame : int)¶Return the number of milliseconds this frame should be displayed.
If -1 is returned then the frame must be displayed forever.
frame (int) –
int
GetDisposalMethod(self, frame : int)¶What should be done after displaying this frame.
frame (int) –
GetFramePosition(self, frame : int)¶frame (int) –
Point
GetFrameSize(self, frame : int)¶frame (int) –
Size
GetTransparentColour(self, frame : int)¶The transparent colour for this frame, if any, or NullColour .
frame (int) –
Colour
GetType(self)¶Return the animation type this decoder implements.
Load(self, stream : InputStream)¶Load the animation image frames from the given stream.
stream (wx.InputStream) –
bool