X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbea3ec6ae2cd8c8d477c6f04a09ca8a1fa1ab96..dc813e6c7ef8a9a26c035b004b512e1aa1b0bf3f:/include/wx/bitmap.h?ds=sidebyside diff --git a/include/wx/bitmap.h b/include/wx/bitmap.h index b78cc41a36..f6fd27635e 100644 --- a/include/wx/bitmap.h +++ b/include/wx/bitmap.h @@ -161,6 +161,9 @@ public: virtual int GetWidth() const = 0; virtual int GetDepth() const = 0; + wxSize GetSize() const + { return wxSize(GetWidth(), GetHeight()); } + #if wxUSE_IMAGE virtual wxImage ConvertToImage() const = 0; #endif // wxUSE_IMAGE