]>
Commit | Line | Data |
---|---|---|
8f493002 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: imaggif.h | |
3 | // Purpose: wxImage GIF handler | |
4 | // Author: Vaclav Slavik & Guillermo Rodriguez Garcia | |
5 | // RCS-ID: $Id$ | |
6 | // Copyright: (c) Guillermo Rodriguez Garcia | |
65571936 | 7 | // Licence: wxWindows licence |
8f493002 VS |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef _WX_IMAGGIF_H_ | |
11 | #define _WX_IMAGGIF_H_ | |
12 | ||
8f493002 VS |
13 | #include "wx/image.h" |
14 | ||
15 | ||
16 | //----------------------------------------------------------------------------- | |
17 | // wxGIFHandler | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
20 | #if wxUSE_GIF | |
21 | ||
22 | class WXDLLEXPORT wxGIFHandler : public wxImageHandler | |
23 | { | |
8f493002 | 24 | public: |
2b5f62a0 VZ |
25 | inline wxGIFHandler() |
26 | { | |
27 | m_name = wxT("GIF file"); | |
28 | m_extension = wxT("gif"); | |
29 | m_type = wxBITMAP_TYPE_GIF; | |
30 | m_mime = wxT("image/gif"); | |
31 | } | |
8f493002 VS |
32 | |
33 | #if wxUSE_STREAMS | |
7beb59f3 WS |
34 | virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 ); |
35 | virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true ); | |
2b5f62a0 | 36 | virtual bool DoCanRead( wxInputStream& stream ); |
8f493002 | 37 | #endif |
2b5f62a0 VZ |
38 | |
39 | private: | |
40 | DECLARE_DYNAMIC_CLASS(wxGIFHandler) | |
8f493002 VS |
41 | }; |
42 | #endif | |
43 | ||
44 | ||
45 | #endif | |
46 | // _WX_IMAGGIF_H_ | |
47 |