X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a31507415d5eb92b6cc3a2032569e1f963a598c6..015fd9ef4833ec3d8b0043a1c7e448c8be4f734a:/wxPython/src/_image.i diff --git a/wxPython/src/_image.i b/wxPython/src/_image.i index 700cfdc938..d248f1a0fa 100644 --- a/wxPython/src/_image.i +++ b/wxPython/src/_image.i @@ -90,7 +90,8 @@ public: else return new wxImage; } - + + MustHaveApp(wxImage(const wxBitmap &bitmap)); %name(ImageFromBitmap) wxImage(const wxBitmap &bitmap) { return new wxImage(bitmap.ConvertToImage()); } @@ -312,6 +313,9 @@ success flag and rgb values.", ""); static wxString GetImageExtWildcard(); +MustHaveApp(ConvertToBitmap); +MustHaveApp(ConvertToMonoBitmap); + %extend { wxBitmap ConvertToBitmap() { wxBitmap bitmap(*self);