X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f515c25a2cbf63596b03397a9d81705d3c464408..a42aa5d7be12e5bb24aa0488892574c01cae5a5b:/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_