X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd94e8aa4563b22e7c66c379625a8373d20720aa..54946cc95b8493fb092b6a508bf22a1cd6fa4693:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index cf69aa743a..786b76f3a2 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -115,7 +115,7 @@ public: wxImage( const wxImage& image ); wxImage( const wxImage* image ); -#if wxUSE_GUI +#if WXWIN_COMPATIBILITY_2_2 && wxUSE_GUI // convertion to/from wxBitmap (deprecated, use wxBitmap's methods instead): wxImage( const wxBitmap &bitmap ); wxBitmap ConvertToBitmap() const; @@ -175,6 +175,12 @@ public: bool SetMaskFromImage(const wxImage & mask, unsigned char mr, unsigned char mg, unsigned char mb); + void DoFloodFill (wxCoord x, wxCoord y, + const wxBrush & fillBrush, + const wxColour& testColour, + int style = wxFLOOD_SURFACE, + int LogicalFunction = wxCOPY /* currently unused */ ) ; + static bool CanRead( const wxString& name ); static int GetImageCount( const wxString& name, long type = wxBITMAP_TYPE_ANY ); virtual bool LoadFile( const wxString& name, long type = wxBITMAP_TYPE_ANY, int index = -1 ); @@ -187,6 +193,7 @@ public: virtual bool LoadFile( wxInputStream& stream, const wxString& mimetype, int index = -1 ); #endif + virtual bool SaveFile( const wxString& name ) const; virtual bool SaveFile( const wxString& name, int type ) const; virtual bool SaveFile( const wxString& name, const wxString& mimetype ) const; @@ -263,6 +270,10 @@ protected: static wxList sm_handlers; private: + //these two are called by FloodFill + bool MatchPixel(int x, int y, int w, int h, const wxColour & c) ; + bool MatchBoundaryPixel(int x, int y, int w, int h, const wxColour & fill, const wxColour & bound) ; + friend class WXDLLEXPORT wxImageHandler; DECLARE_DYNAMIC_CLASS(wxImage)