X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66f21994495139b10fa364a0596784f8fe764250..31eefb998d894e3b566e13714fa53186101829a1:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index bc19ddd607..9253a4bdb4 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 @@ -306,6 +306,8 @@ public: static wxImageHandler *FindHandler( long imageType ); static wxImageHandler *FindHandlerMime( const wxString& mimetype ); + static wxString GetImageExtWildcard(); + static void CleanUpHandlers(); static void InitStandardHandlers();