virtual bool LoadFile( wxImage *image, wxInputStream& stream );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream );
#endif
-
};
#endif
m_mime = "image/jpeg";
};
+#if wxUSE_STREAMS
virtual bool LoadFile( wxImage *image, wxInputStream& stream );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream );
+#endif
};
#endif
#endif
};
+//-----------------------------------------------------------------------------
+// wxGIFHandler
+//-----------------------------------------------------------------------------
+
+class WXDLLEXPORT wxGIFHandler : public wxImageHandler
+{
+ DECLARE_DYNAMIC_CLASS(wxGIFHandler)
+
+public:
+
+ inline wxGIFHandler()
+ {
+ m_name = "GIF file";
+ m_extension = "gif";
+ m_type = wxBITMAP_TYPE_GIF;
+ m_mime = "image/gif";
+ };
+
+#if wxUSE_STREAMS
+ virtual bool LoadFile( wxImage *image, wxInputStream& stream );
+ virtual bool SaveFile( wxImage *image, wxOutputStream& stream );
+#endif
+};
+
//-----------------------------------------------------------------------------
// wxImage
//-----------------------------------------------------------------------------