- virtual bool LoadFile( wxImage *image, const wxString& name );
- virtual bool SaveFile( wxImage *image, const wxString& name );
+#if wxUSE_STREAMS
+ virtual bool LoadFile( wxImage *image, wxInputStream& stream );
+ virtual bool SaveFile( wxImage *image, wxOutputStream& stream );
+#endif
+
+};
+#endif
+
+//-----------------------------------------------------------------------------
+// wxJPEGHandler
+//-----------------------------------------------------------------------------
+
+#if wxUSE_LIBJPEG
+class WXDLLEXPORT wxJPEGHandler: public wxImageHandler
+{
+ DECLARE_DYNAMIC_CLASS(wxJPEGHandler)
+
+public:
+
+ inline wxJPEGHandler()
+ {
+ m_name = "JPEG file";
+ m_extension = "jpg";
+ m_type = wxBITMAP_TYPE_JPEG;
+ };
+
+ virtual bool LoadFile( wxImage *image, wxInputStream& stream );
+ virtual bool SaveFile( wxImage *image, wxOutputStream& stream );