// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "rgncmn.h"
#endif
#include "wx/region.h"
#include "wx/bitmap.h"
+#if wxUSE_IMAGE
#include "wx/image.h"
+#endif
#include "wx/dcmemory.h"
wxBitmap bmp(box.GetRight(), box.GetBottom());
wxMemoryDC dc;
dc.SelectObject(bmp);
- dc.SetBackground(*wxWHITE_BRUSH);
+ dc.SetBackground(*wxBLACK_BRUSH);
dc.Clear();
dc.SetClippingRegion(*this);
- dc.SetBackground(*wxBLACK_BRUSH);
+ dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SelectObject(wxNullBitmap);
return bmp;
const wxColour& transColour,
int tolerance)
{
+#if wxUSE_IMAGE
unsigned char loR, loG, loB;
unsigned char hiR, hiG, hiB;
}
return TRUE;
+#else
+ // No wxImage support
+ return FALSE;
+#endif
}
//---------------------------------------------------------------------------