1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImage GIF handler
4 // Author: Vaclav Slavik & Guillermo Rodriguez Garcia
6 // Copyright: (c) Guillermo Rodriguez Garcia
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_IMAGGIF_H_
11 #define _WX_IMAGGIF_H_
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxGIFHandler
: public wxImageHandler
27 m_name
= wxT("GIF file");
28 m_extension
= wxT("gif");
29 m_type
= wxBITMAP_TYPE_GIF
;
30 m_mime
= wxT("image/gif");
34 virtual bool LoadFile(wxImage
*image
, wxInputStream
& stream
,
35 bool verbose
= true, int index
= -1);
36 virtual bool SaveFile(wxImage
*image
, wxOutputStream
& stream
,
40 virtual int DoGetImageCount(wxInputStream
& stream
);
41 virtual bool DoCanRead(wxInputStream
& stream
);
42 #endif // wxUSE_STREAMS
45 DECLARE_DYNAMIC_CLASS(wxGIFHandler
)
50 #endif // _WX_IMAGGIF_H_