]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/image.h
more DG-UX compilation fixes (thanks to Benjamin Beckwith)
[wxWidgets.git] / include / wx / image.h
index c548f26c91e759f78d51ddfd2830220c3a7981a0..1962bd3f87a31b0100608c8a72424871413efe5f 100644 (file)
@@ -31,6 +31,9 @@ class WXDLLEXPORT wxImageHandler;
 #if wxUSE_LIBPNG
 class WXDLLEXPORT wxPNGHandler;
 #endif
+#if wxUSE_LIBJPEG
+class WXDLLEXPORT wxJPEGHandler;
+#endif
 class WXDLLEXPORT wxBMPHandler;
 class WXDLLEXPORT wxImage;
 
@@ -92,6 +95,29 @@ public:
 };
 #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 );
+};
+#endif
+
 //-----------------------------------------------------------------------------
 // wxBMPHandler
 //-----------------------------------------------------------------------------