X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd116e73f0ad388e169676ec79cf176699956e7d..8a12f92d0d10a463f202c545a785a84b88b0c4a9:/wxPython/src/image.i diff --git a/wxPython/src/image.i b/wxPython/src/image.i index db19f47d72..be25dd688d 100644 --- a/wxPython/src/image.i +++ b/wxPython/src/image.i @@ -317,6 +317,7 @@ public: static void AddHandler( wxImageHandler *handler ); static void InsertHandler( wxImageHandler *handler ); static bool RemoveHandler( const wxString& name ); + static wxString GetImageExtWildcard(); %addmethods { @@ -339,7 +340,7 @@ public: // Alternate constructors -%new wxImage* wxEmptyImage(int width=0, int height=0); +%new wxImage* wxEmptyImage(int width=0, int height=0, bool clear = TRUE); %new wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype, int index = -1); %new wxImage* wxImageFromBitmap(const wxBitmap &bitmap); %new wxImage* wxImageFromData(int width, int height, unsigned char* data); @@ -347,11 +348,11 @@ public: %new wxImage* wxImageFromStreamMime(wxInputStream& stream, const wxString& mimetype, int index = -1 ); %{ - wxImage* wxEmptyImage(int width=0, int height=0) { - if (width == 0 && height == 0) - return new wxImage; + wxImage* wxEmptyImage(int width=0, int height=0, bool clear = TRUE) { + if (width > 0 && height > 0) + return new wxImage(width, height, clear); else - return new wxImage(width, height); + return new wxImage; }