Applied FloodFill patch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-04-01 21:40:42 +00:00
parent 0102f092ed
commit b1699cd397
11 changed files with 464 additions and 17 deletions

View File

@@ -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 );
@@ -264,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)