X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66f21994495139b10fa364a0596784f8fe764250..ef094fa075bc56bcbc33b12159c395ea28afda3b:/include/wx/image.h?ds=sidebyside diff --git a/include/wx/image.h b/include/wx/image.h index bc19ddd607..12a0223cc7 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -140,7 +140,7 @@ class WXDLLEXPORT wxImage: public wxObject { public: wxImage(); - wxImage( int width, int height ); + wxImage( int width, int height, bool clear = true ); wxImage( int width, int height, unsigned char* data, bool static_data = FALSE ); wxImage( const wxString& name, long type = wxBITMAP_TYPE_ANY, int index = -1 ); wxImage( const wxString& name, const wxString& mimetype, int index = -1 ); @@ -162,8 +162,8 @@ public: #endif #endif - void Create( int width, int height ); - void Create( int width, int height, unsigned char* data, bool static_data = FALSE ); + bool Create( int width, int height, bool clear = true ); + bool Create( int width, int height, unsigned char* data, bool static_data = FALSE ); void Destroy(); // creates an identical copy of the image (the = operator