X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..439c7eae9b77cc6c0414ccae52e688d626c86851:/src/common/bmpbase.cpp?ds=inline diff --git a/src/common/bmpbase.cpp b/src/common/bmpbase.cpp index e80091dada..eebf56e5f9 100644 --- a/src/common/bmpbase.cpp +++ b/src/common/bmpbase.cpp @@ -135,6 +135,16 @@ public: void OnExit() { wxBitmap::CleanUpHandlers(); } }; +wxBitmap wxBitmapBase::ConvertToDisabled(unsigned char brightness) const +{ + wxBitmap bmp; +#if wxUSE_IMAGE + wxImage image = ConvertToImage(); + bmp = wxBitmap(image.ConvertToDisabled(brightness)); +#endif + return bmp; +} + IMPLEMENT_DYNAMIC_CLASS(wxBitmapBaseModule, wxModule) #endif // wxUSE_BITMAP_BASE