X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e9ee68e90212f1d9ba9f1cfa05e291463f6ae92..96f201da8b08391fd719ad74875b87afacc8fc97:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index ffdcf30a2f..2a1c3ad5b0 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -95,7 +95,6 @@ public: virtual bool LoadFile( wxImage *image, wxInputStream& stream ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream ); #endif - }; #endif @@ -118,8 +117,10 @@ public: m_mime = "image/jpeg"; }; +#if wxUSE_STREAMS virtual bool LoadFile( wxImage *image, wxInputStream& stream ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream ); +#endif }; #endif @@ -146,6 +147,30 @@ public: #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 //-----------------------------------------------------------------------------