X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e19291405ff3995a32c965da9694f2f20aa02468..4714ef79af518f74214126559ef48607acf89180:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index 21d0f14710..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 @@ -150,9 +151,25 @@ public: // 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