#include <wx/animdecod.h>
wxAnimationDecoder is used by wxAnimation
for loading frames and other information for the animation from the animation image file.
|
virtual bool | DoCanRead (wxInputStream &stream) const =0 |
| 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. More...
|
|
◆ wxAnimationDecoder()
wxAnimationDecoder::wxAnimationDecoder |
( |
| ) |
|
◆ CanRead()
Returns true if this decoder supports loading from the given stream.
◆ Clone()
◆ ConvertToImage()
virtual bool wxAnimationDecoder::ConvertToImage |
( |
unsigned int |
frame, |
|
|
wxImage * |
image |
|
) |
| const |
|
pure virtual |
◆ DoCanRead()
virtual bool wxAnimationDecoder::DoCanRead |
( |
wxInputStream & |
stream | ) |
const |
|
protectedpure virtual |
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.
Implemented in wxGIFDecoder, and wxANIDecoder.
◆ GetAnimationSize()
wxSize wxAnimationDecoder::GetAnimationSize |
( |
| ) |
const |
◆ GetBackgroundColour()
wxColour wxAnimationDecoder::GetBackgroundColour |
( |
| ) |
const |
◆ GetDelay()
virtual long wxAnimationDecoder::GetDelay |
( |
unsigned int |
frame | ) |
const |
|
pure virtual |
Return the number of milliseconds this frame should be displayed.
If -1 is returned then the frame must be displayed forever.
Implemented in wxGIFDecoder, and wxANIDecoder.
◆ GetDisposalMethod()
◆ GetFrameCount()
unsigned int wxAnimationDecoder::GetFrameCount |
( |
| ) |
const |
◆ GetFramePosition()
virtual wxPoint wxAnimationDecoder::GetFramePosition |
( |
unsigned int |
frame | ) |
const |
|
pure virtual |
◆ GetFrameSize()
virtual wxSize wxAnimationDecoder::GetFrameSize |
( |
unsigned int |
frame | ) |
const |
|
pure virtual |
◆ GetTransparentColour()
virtual wxColour wxAnimationDecoder::GetTransparentColour |
( |
unsigned int |
frame | ) |
const |
|
pure virtual |
◆ GetType()
◆ Load()