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
// wxGIFHandler
//-----------------------------------------------------------------------------
-/* why an extra headers for GIF, RR */
+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";
+ };
-#include "wx/imaggif.h"
+#if wxUSE_STREAMS
+ virtual bool LoadFile( wxImage *image, wxInputStream& stream );
+ virtual bool SaveFile( wxImage *image, wxOutputStream& stream );
+#endif
+};
//-----------------------------------------------------------------------------
// wxImage