X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9838df2cefc5b368bb11f98c784ecc78f45ecaf7..ba6f401d4580852928cb1e5b4fd0bfd1aacb9e25:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index c548f26c91..1962bd3f87 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -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 //-----------------------------------------------------------------------------