#include "wx/region.h"
#include "wx/bitmap.h"
+#if wxUSE_IMAGE
#include "wx/image.h"
+#endif
#include "wx/dcmemory.h"
//---------------------------------------------------------------------------
+#if wxUSE_IMAGE
bool wxRegion::Union(const wxBitmap& bmp,
const wxColour& transColour,
int tolerance)
+#else
+bool wxRegion::Union(const wxBitmap& WXUNUSED(bmp),
+ const wxColour& WXUNUSED(transColour),
+ int WXUNUSED(tolerance))
+#endif
{
+#if wxUSE_IMAGE
unsigned char loR, loG, loB;
unsigned char hiR, hiG, hiB;
}
}
- return TRUE;
+ return true;
+#else
+ // No wxImage support
+ return false;
+#endif
}
//---------------------------------------------------------------------------