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

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// Name: imaggif.h
// Name: wx/imaggif.h
// Purpose: wxImage GIF handler
// Author: Vaclav Slavik & Guillermo Rodriguez Garcia
// RCS-ID: $Id$
@@ -31,18 +31,20 @@ public:
}
#if wxUSE_STREAMS
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
virtual bool LoadFile(wxImage *image, wxInputStream& stream,
bool verbose = true, int index = -1);
virtual bool SaveFile(wxImage *image, wxOutputStream& stream,
bool verbose=true);
virtual int GetImageCount(wxInputStream& stream);
protected:
virtual bool DoCanRead( wxInputStream& stream );
#endif
virtual bool DoCanRead(wxInputStream& stream);
#endif // wxUSE_STREAMS
private:
DECLARE_DYNAMIC_CLASS(wxGIFHandler)
};
#endif
#endif // wxUSE_GIF
#endif
// _WX_IMAGGIF_H_
#endif // _WX_IMAGGIF_H_