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
*this = wxBitmap(image);
#else
- wxFAIL_MSG(_T("creating bitmaps from XPMs not supported"));
+ wxFAIL_MSG(wxT("creating bitmaps from XPMs not supported"));
#endif // wxUSE_IMAGE && wxUSE_XPM
}
#endif // !(defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__))