+ virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
+ virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
+
+protected:
+ virtual bool DoCanRead( wxInputStream& stream );
+ bool SaveDib(wxImage *image, wxOutputStream& stream, bool verbose,
+ bool IsBmp, bool IsMask);
+ bool DoLoadDib(wxImage *image, int width, int height, int bpp, int ncolors,
+ int comp, wxFileOffset bmpOffset, wxInputStream& stream,
+ bool verbose, bool IsBmp, bool hasPalette);
+ bool LoadDib(wxImage *image, wxInputStream& stream, bool verbose, bool IsBmp);
+#endif // wxUSE_STREAMS
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxBMPHandler)
+};
+
+#if wxUSE_ICO_CUR
+// ----------------------------------------------------------------------------
+// wxICOHandler
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxICOHandler : public wxBMPHandler
+{
+public:
+ wxICOHandler()
+ {
+ m_name = wxT("Windows icon file");
+ m_extension = wxT("ico");
+ m_type = wxBITMAP_TYPE_ICO;
+ m_mime = wxT("image/x-ico");
+ }
+
+#if wxUSE_STREAMS
+ virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
+ virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
+ virtual bool DoLoadFile( wxImage *image, wxInputStream& stream, bool verbose, int index );
+
+protected:
+ virtual int DoGetImageCount( wxInputStream& stream );
+ virtual bool DoCanRead( wxInputStream& stream );
+#endif // wxUSE_STREAMS