added wxBitmap::UseAlpha()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-04-13 13:45:20 +00:00
parent bc9f356d52
commit 10b41b53cb
4 changed files with 14 additions and 1 deletions

View File

@@ -1096,6 +1096,12 @@ int wxBitmap::GetQuality() const
#endif // WXWIN_COMPATIBILITY_2_4
void wxBitmap::UseAlpha()
{
if ( GetBitmapData() )
GetBitmapData()->m_hasAlpha = true;
}
bool wxBitmap::HasAlpha() const
{
return GetBitmapData() && GetBitmapData()->m_hasAlpha;