#if !defined(__WINDOWS__) || wxUSE_XPM_IN_MSW
#include "smile.xpm"
#endif
+#include "wx/rawbmp.h"
-#if defined(__WXMSW__)
- #define wxHAVE_RAW_BITMAP
-#endif
// derived classes
wxMenu *menuImage = new wxMenu;
menuImage->Append( ID_NEW, _T("&Show any image...\tCtrl-O"));
+
#ifdef wxHAVE_RAW_BITMAP
menuImage->Append( ID_SHOWRAW, _T("Test &raw bitmap...\tCtrl-R"));
#endif
#include "wx/image.h"
#include "wx/xpmdecod.h"
+#ifdef wxHAVE_RAW_BITMAP
#include "wx/rawbmp.h"
+#endif
// missing from mingw32 header
#ifndef CLR_INVALID
// raw bitmap access support
// ----------------------------------------------------------------------------
+#ifdef wxHAVE_RAW_BITMAP
void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp)
{
if ( !Ok() )
}
}
}
+#endif // #ifdef wxHAVE_RAW_BITMAP
// ----------------------------------------------------------------------------
// wxMask
#include "wx/dcprint.h"
#include "wx/module.h"
#include "wx/dynload.h"
+
+#ifdef wxHAVE_RAW_BITMAP
#include "wx/rawbmp.h"
+#endif
#include <string.h>
#include <math.h>
// convert degrees to radians
static inline double DegToRad(double deg) { return (deg * M_PI) / 180.0; }
+
+#ifdef wxHAVE_RAW_BITMAP
// our (limited) AlphaBlend() replacement
static void
wxAlphaBlend(wxDC& dc, int x, int y, int w, int h, const wxBitmap& bmp);
+#endif
// ----------------------------------------------------------------------------
// private classes
wxCoord x2 = x1 + width,
y2 = y1 + height;
-#if defined(__WIN32__) && !defined(__SC__) && !defined(__WXMICROWIN__)
+#if defined(__WIN32__) && !defined(__SYMANTEC__) && !defined(__WXMICROWIN__)
RECT rect;
rect.left = x1;
rect.top = y1;
}
else // use our own (probably much slower) implementation
{
+#ifdef wxHAVE_RAW_BITMAP
wxAlphaBlend(*this, x, y, width, height, bmp);
+#else
+ wxLogLastError(_T("AlphaBlend not available with this compiler setup"));
+#endif //#ifdef wxHAVE_RAW_BITMAP
}
return;
// wxAlphaBlend: our fallback if ::AlphaBlend() is unavailable
// ----------------------------------------------------------------------------
+#ifdef wxHAVE_RAW_BITMAP
static void
wxAlphaBlend(wxDC& dc, int xDst, int yDst, int w, int h, const wxBitmap& bmpSrc)
{
}
}
+#endif // #ifdef wxHAVE_RAW_BITMAP