GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing docs.wxpython.org — wx.Mask — wxPython 4.3.2 Docs
|
Default constructor. |
|
Returns the mask as a monochrome bitmap. |
Properties Summary¶See |
Class API¶Possible constructors:
Mask() -> None Mask(bitmap, index) -> None Mask(bitmap) -> None Mask(bitmap, colour) -> None
This class encapsulates a monochrome mask bitmap, where the masked area is black and the unmasked area is white.
__init__ (self)
Default constructor.
None
__init__ (self, bitmap, index)
Constructs a mask from a bitmap and a palette index that indicates the background.
Not implemented for GTK.
bitmap (wx.Bitmap) – A valid bitmap.
index (int) – Index into a palette, specifying the transparency colour.
None
__init__ (self, bitmap)
Constructs a mask from a monochrome bitmap.
bitmap (wx.Bitmap)
None
__init__ (self, bitmap, colour)
Constructs a mask from a bitmap and a colour that indicates the background.
Returns the mask as a monochrome bitmap.
Currently this method is implemented in wxMSW, wxGTK and wxOSX.
Added in version 2.9.5.