1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxMask}}\label{wxmask}
|
|
|
|
|
|
|
|
This class encapsulates a monochrome mask bitmap, where the masked area is black and
|
2001-01-02 02:59:43 -05:00
|
|
|
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.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/bitmap.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{Remarks}
|
|
|
|
|
|
|
|
A mask may be associated with a \helpref{wxBitmap}{wxbitmap}. It is used in \helpref{wxDC::Blit}{wxdcblit} when
|
|
|
|
the source device context is a \helpref{wxMemoryDC}{wxmemorydc} with wxBitmap selected into it that
|
|
|
|
contains a mask.
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxBitmap}{wxbitmap}, \helpref{wxDC::Blit}{wxdcblit}, \helpref{wxMemoryDC}{wxmemorydc}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxMask::wxMask}\label{wxmaskctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxMask}{\void}
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
|
|
2000-12-20 11:10:46 -05:00
|
|
|
\func{}{wxMask}{\param{const \helpref{wxBitmap}{wxbitmap}\& }{bitmap}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Constructs a mask from a monochrome bitmap.
|
|
|
|
|
1999-09-02 01:36:39 -04:00
|
|
|
\pythonnote{This is the default constructor for wxMask in wxPython.}
|
|
|
|
|
2000-12-20 11:10:46 -05:00
|
|
|
\func{}{wxMask}{\param{const \helpref{wxBitmap}{wxbitmap}\& }{bitmap}, \param{const \helpref{wxColour}{wxcolour}\& }{colour}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-12-25 06:25:53 -05:00
|
|
|
Constructs a mask from a bitmap and a colour that indicates the background.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-09-02 01:36:39 -04:00
|
|
|
\pythonnote{wxPython has an alternate wxMask constructor matching this
|
1999-12-25 15:34:56 -05:00
|
|
|
form called {\tt wxMaskColour}.}
|
1999-09-02 01:36:39 -04:00
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\func{}{wxMask}{\param{const wxBitmap\& }{bitmap}, \param{int}{ index}}
|
|
|
|
|
1999-06-13 11:24:01 -04:00
|
|
|
Constructs a mask from a bitmap and a palette index that indicates the background. Not
|
|
|
|
yet implemented for GTK.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{bitmap}{A valid bitmap.}
|
|
|
|
|
|
|
|
\docparam{colour}{A colour specifying the transparency RGB values.}
|
|
|
|
|
|
|
|
\docparam{index}{Index into a palette, specifying the transparency colour.}
|
|
|
|
|
2004-09-28 07:54:59 -04:00
|
|
|
\membersection{wxMask::\destruct{wxMask}}\label{wxmaskdtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{\destruct{wxMask}}{\void}
|
|
|
|
|
|
|
|
Destroys the wxMask object and the underlying bitmap data.
|
|
|
|
|
|
|
|
\membersection{wxMask::Create}\label{wxmaskcreate}
|
|
|
|
|
|
|
|
\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}}
|
|
|
|
|
|
|
|
Constructs a mask from a monochrome bitmap.
|
|
|
|
|
|
|
|
\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}, \param{const wxColour\& }{colour}}
|
|
|
|
|
1999-12-25 06:25:53 -05:00
|
|
|
Constructs a mask from a bitmap and a colour that indicates the background.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}, \param{int}{ index}}
|
|
|
|
|
1999-06-13 11:24:01 -04:00
|
|
|
Constructs a mask from a bitmap and a palette index that indicates the background. Not
|
|
|
|
yet implemented for GTK.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{bitmap}{A valid bitmap.}
|
|
|
|
|
|
|
|
\docparam{colour}{A colour specifying the transparency RGB values.}
|
|
|
|
|
|
|
|
\docparam{index}{Index into a palette, specifying the transparency colour.}
|
|
|
|
|
|
|
|
|