#include <wx/gifdecod.h>
An animation decoder supporting animated GIF files.
Public Member Functions | |
| wxGIFDecoder () | |
| ~wxGIFDecoder () | |
| virtual bool | Load (wxInputStream &stream) |
| Load the animation image frames from the given stream. | |
| virtual wxAnimationDecoder * | Clone () const |
| Create a copy of this decoder. | |
| virtual wxAnimationType | GetType () const |
| Return the animation type this decoder implements. | |
| virtual bool | ConvertToImage (unsigned int frame, wxImage *image) const |
Convert given frame to wxImage. | |
| virtual wxSize | GetFrameSize (unsigned int frame) const |
| virtual wxPoint | GetFramePosition (unsigned int frame) const |
| virtual wxAnimationDisposal | GetDisposalMethod (unsigned int frame) const |
| What should be done after displaying this frame. | |
| virtual long | GetDelay (unsigned int frame) const |
| Return the number of milliseconds this frame should be displayed. | |
| virtual wxColour | GetTransparentColour (unsigned int frame) const |
The transparent colour for this frame, if any, or wxNullColour. | |
| Public Member Functions inherited from wxAnimationDecoder | |
| wxAnimationDecoder () | |
| bool | CanRead (wxInputStream &stream) const |
| Returns true if this decoder supports loading from the given stream. | |
| wxSize | GetAnimationSize () const |
| wxColour | GetBackgroundColour () const |
| unsigned int | GetFrameCount () const |
| Public Member Functions inherited from wxRefCounter | |
| wxRefCounter () | |
| Default constructor. | |
| void | DecRef () |
| Decrements the reference count associated with this shared data and, if it reaches zero, destroys this instance of wxRefCounter releasing its memory. | |
| int | GetRefCount () const |
| Returns the reference count associated with this shared data. | |
| void | IncRef () |
| Increments the reference count associated with this shared data. | |
Protected Member Functions | |
| virtual bool | DoCanRead (wxInputStream &stream) const |
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. | |
| Protected Member Functions inherited from wxRefCounter | |
| virtual | ~wxRefCounter () |
| Destructor. | |
| wxGIFDecoder::wxGIFDecoder | ( | ) |
| wxGIFDecoder::~wxGIFDecoder | ( | ) |
|
virtual |
Create a copy of this decoder.
Implements wxAnimationDecoder.
|
virtual |
Convert given frame to wxImage.
Implements wxAnimationDecoder.
|
protectedvirtual |
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.
Implements wxAnimationDecoder.
|
virtual |
Return the number of milliseconds this frame should be displayed.
If -1 is returned then the frame must be displayed forever.
Implements wxAnimationDecoder.
|
virtual |
What should be done after displaying this frame.
Implements wxAnimationDecoder.
|
virtual |
Implements wxAnimationDecoder.
|
virtual |
Implements wxAnimationDecoder.
|
virtual |
The transparent colour for this frame, if any, or wxNullColour.
Implements wxAnimationDecoder.
|
virtual |
Return the animation type this decoder implements.
Implements wxAnimationDecoder.
|
virtual |
Load the animation image frames from the given stream.
Implements wxAnimationDecoder.