Class: Wx::Mask
Overview
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.
Note:
A mask can be associated also with a bitmap with an alpha channel but drawing such bitmaps under WXMSW may be slow so using them should be avoided if drawing performance is an important factor.
Category: Graphics Device Interface (GDI)
Instance Method Summary collapse
- #create(*args) ⇒ Object
-
#get_bitmap ⇒ Wx::Bitmap
(also: #bitmap)
Returns the mask as a monochrome bitmap.
-
#initialize(*args) ⇒ Mask
constructor
A new instance of Mask.
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
Instance Method Details
#create(bitmap, index) ⇒ Boolean #create(bitmap) ⇒ Boolean #create(bitmap, colour) ⇒ Boolean
690 |
# File 'lib/wx/doc/gen/bitmap.rb', line 690 def create(*args) end |
#get_bitmap ⇒ Wx::Bitmap Also known as: bitmap
Returns the mask as a monochrome bitmap.
Currently this method is implemented in WXMSW, WXGTK and WXOSX.
696 |
# File 'lib/wx/doc/gen/bitmap.rb', line 696 def get_bitmap; end |