Applied part of #10034: wxImage::ConvertToDisabled()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user