Type Mask
object
--+
|
Object
--+
|
Mask
This class encapsulates a monochrome mask bitmap, where the masked
area is black and the unmasked area is white. When associated with a
bitmap and drawn in a device context, the unmasked area of the bitmap
will be drawn, and the masked area will not be drawn.
A mask may be associated with a wx.Bitmap
. It is used in
wx.DC.DrawBitmap
or wx.DC.Blit
when the source device context is a
wx.MemoryDC
with a wx.Bitmap
selected into it that contains a
mask.
Method Summary |
Mask |
__init__ (self,
bitmap,
colour)
Constructs a mask from a wx.Bitmap and a wx.Colour in that bitmap
that indicates the transparent portions of the mask. |
|
__del__(self)
|
Property Summary |
|
thisown : The membership flag |
__init__(self,
bitmap,
colour=NullColour)
(Constructor)
Constructs a mask from a wx.Bitmap and a wx.Colour in that bitmap
that indicates the transparent portions of the mask. In other words,
the pixels in bitmap that match colour will be the transparent
portions of the mask. If no colour or an invalid colour is
passed then BLACK is used.
-
- Parameters:
bitmap
(type=Bitmap)
colour
(type=Colour)
- Returns:
-
Mask
- Overrides:
wx.Object.__init__
See Also: wx.Bitmap , wx.Colour
|
thisown
The membership flag
-
|