added wxBitmap::GetMaskBitmap()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -145,6 +145,7 @@ public:
|
||||
#endif // wxUSE_PALETTE
|
||||
|
||||
wxMask *GetMask() const;
|
||||
wxBitmap GetMaskBitmap() const;
|
||||
void SetMask(wxMask *mask);
|
||||
|
||||
bool operator==(const wxBitmap& bitmap) const { return m_refData == bitmap.m_refData; }
|
||||
|
@@ -1125,6 +1125,15 @@ wxMask *wxBitmap::GetMask() const
|
||||
return GetBitmapData() ? GetBitmapData()->GetMask() : (wxMask *) NULL;
|
||||
}
|
||||
|
||||
wxBitmap wxBitmap::GetMaskBitmap() const
|
||||
{
|
||||
wxBitmap bmp;
|
||||
wxMask *mask = GetMask();
|
||||
if ( mask )
|
||||
bmp.SetHBITMAP(mask->GetMaskBitmap());
|
||||
return bmp;
|
||||
}
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
|
||||
wxDC *wxBitmap::GetSelectedInto() const
|
||||
|
Reference in New Issue
Block a user