X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f515c25a2cbf63596b03397a9d81705d3c464408..fe6b43a36e8c641c86404cd9369ad3f1402d1546:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index ca9cc6a3c1..adfce58b9c 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -24,6 +24,8 @@ # include "wx/stream.h" #endif +#if wxUSE_IMAGE + //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- @@ -101,7 +103,6 @@ public: #if wxUSE_GUI // convertion to/from wxBitmap (deprecated, use wxBitmap's methods instead): wxImage( const wxBitmap &bitmap ); - operator wxBitmap() const { return ConvertToBitmap(); } wxBitmap ConvertToBitmap() const; #ifdef __WXGTK__ wxBitmap ConvertToMonoBitmap( unsigned char red, unsigned char green, unsigned char blue ) const; @@ -248,6 +249,9 @@ WXDLLEXPORT_DATA(extern wxImage) wxNullImage; #include "wx/imagjpeg.h" #include "wx/imagtiff.h" #include "wx/imagpnm.h" +#include "wx/imagxpm.h" + +#endif // wxUSE_IMAGE #endif // _WX_IMAGE_H_