]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imaggif.h
Correct check for MSVC version in wxUSE_GRAPHICS_CONTEXT definition.
[wxWidgets.git] / include / wx / imaggif.h
CommitLineData
8f493002 1/////////////////////////////////////////////////////////////////////////////
85fcb94f 2// Name: wx/imaggif.h
8f493002
VS
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
53a2db12 22class WXDLLIMPEXP_CORE wxGIFHandler : public wxImageHandler
8f493002 23{
8f493002 24public:
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
85fcb94f
VZ
34 virtual bool LoadFile(wxImage *image, wxInputStream& stream,
35 bool verbose = true, int index = -1);
36 virtual bool SaveFile(wxImage *image, wxOutputStream& stream,
37 bool verbose=true);
8faef7cc 38
6f02a879 39protected:
8faef7cc 40 virtual int DoGetImageCount(wxInputStream& stream);
85fcb94f
VZ
41 virtual bool DoCanRead(wxInputStream& stream);
42#endif // wxUSE_STREAMS
2b5f62a0
VZ
43
44private:
45 DECLARE_DYNAMIC_CLASS(wxGIFHandler)
8f493002 46};
8f493002 47
85fcb94f 48#endif // wxUSE_GIF
8f493002 49
85fcb94f 50#endif // _WX_IMAGGIF_H_
8f493002 51