X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da32eb53cbe7947f3f4599d7b6b5caa21a68d27f..49bffb1482cd2a6a30b38280f6c9bffc72dbfe42:/wxPython/src/_image.i diff --git a/wxPython/src/_image.i b/wxPython/src/_image.i index 1655963fc4..08d530f0eb 100644 --- a/wxPython/src/_image.i +++ b/wxPython/src/_image.i @@ -161,6 +161,13 @@ public: int GetWidth(); int GetHeight(); + %extend { + wxSize GetSize() { + wxSize size(self->GetWidth(), self->GetHeight()); + return size; + } + } + wxImage GetSubImage(const wxRect& rect); wxImage Copy(); void Paste( const wxImage &image, int x, int y );