implement GetImageCount() for GIF handler (closes #10663); added test for it to the sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-04-05 12:52:22 +00:00
parent 3b8ec767b9
commit 85fcb94fc9
5 changed files with 58 additions and 23 deletions

View File

@@ -109,7 +109,9 @@ public:
Currently, the stream must support seeking.
@return Number of available images. For most image handlers, this is 1
(exceptions are TIFF and ICO formats).
(exceptions are TIFF and ICO formats as well as animated GIFs
for which this function returns the number of frames in the
animation).
*/
virtual int GetImageCount(wxInputStream& stream);
@@ -1603,7 +1605,9 @@ public:
@li wxBITMAP_TYPE_ANY: Will try to autodetect the format.
@return Number of available images. For most image handlers, this is 1
(exceptions are TIFF and ICO formats).
(exceptions are TIFF and ICO formats as well as animated GIFs
for which this function returns the number of frames in the
animation).
*/
static int GetImageCount(const wxString& filename,
wxBitmapType type = wxBITMAP_TYPE_ANY);