Catch up Os/2 to the state of the branch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2003-04-17 17:24:45 +00:00
parent 6a6e183c12
commit c506b569a9
12 changed files with 144 additions and 36 deletions

View File

@@ -44,6 +44,16 @@ public:
);
wxRegion(const wxRect& rRect);
wxRegion(WXHRGN hRegion, WXHDC hPS); // Hangs on to this region
wxRegion( const wxBitmap& rBmp
,const wxColour& rTransColour = wxNullColour
,int nTolerance = 0
)
{
Union( rBmp
,rTransColour
,nTolerance
);
}
wxRegion();
~wxRegion();
@@ -189,6 +199,23 @@ public:
//
wxRegionContain Contains(const wxRect& rRect) const;
//
// Convert the region to a B&W bitmap with the black pixels being inside
// the region.
//
wxBitmap ConvertToBitmap(void) const;
//
// Use the non-transparent pixels of a wxBitmap for the region to combine
// with this region. If the bitmap has a mask then it will be used,
// otherwise the colour to be treated as transparent may be specified,
// along with an optional tolerance value.
//
bool Union( const wxBitmap& rBmp
,const wxColour& rTransColour = wxNullColour
,int nTolerance = 0
);
//
// Internal
//