1 \section{\class{wxMask
}}\label{wxmask
}
3 This class encapsulates a monochrome mask bitmap, where the masked area is black and
4 the unmasked area is white.
6 \wxheading{Derived from
}
8 \helpref{wxObject
}{wxobject
}
10 \wxheading{Include files
}
16 A mask may be associated with a
\helpref{wxBitmap
}{wxbitmap
}. It is used in
\helpref{wxDC::Blit
}{wxdcblit
} when
17 the source device context is a
\helpref{wxMemoryDC
}{wxmemorydc
} with wxBitmap selected into it that
22 \helpref{wxBitmap
}{wxbitmap
},
\helpref{wxDC::Blit
}{wxdcblit
},
\helpref{wxMemoryDC
}{wxmemorydc
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxMask::wxMask
}\label{wxmaskconstr
}
28 \func{}{wxMask
}{\void}
32 \func{}{wxMask
}{\param{const wxBitmap\&
}{bitmap
}}
34 Constructs a mask from a monochrome bitmap.
36 \func{}{wxMask
}{\param{const wxBitmap\&
}{bitmap
},
\param{const wxColour\&
}{colour
}}
38 Constructs a mask from a bitmap and a colour that indicates the background.
40 \func{}{wxMask
}{\param{const wxBitmap\&
}{bitmap
},
\param{int
}{ index
}}
42 Constructs a mask from a bitmap and a palette index that indicates the background.
44 \wxheading{Parameters
}
46 \docparam{bitmap
}{A valid bitmap.
}
48 \docparam{colour
}{A colour specifying the transparency RGB values.
}
50 \docparam{index
}{Index into a palette, specifying the transparency colour.
}
52 \membersection{wxMask::
\destruct{wxMask
}}
54 \func{}{\destruct{wxMask
}}{\void}
56 Destroys the wxMask object and the underlying bitmap data.
58 \membersection{wxMask::Create
}\label{wxmaskcreate
}
60 \func{bool
}{Create
}{\param{const wxBitmap\&
}{bitmap
}}
62 Constructs a mask from a monochrome bitmap.
64 \func{bool
}{Create
}{\param{const wxBitmap\&
}{bitmap
},
\param{const wxColour\&
}{colour
}}
66 Constructs a mask from a bitmap and a colour that indicates the background.
68 \func{bool
}{Create
}{\param{const wxBitmap\&
}{bitmap
},
\param{int
}{ index
}}
70 Constructs a mask from a bitmap and a palette index that indicates the background.
72 \wxheading{Parameters
}
74 \docparam{bitmap
}{A valid bitmap.
}
76 \docparam{colour
}{A colour specifying the transparency RGB values.
}
78 \docparam{index
}{Index into a palette, specifying the transparency colour.
}