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
}
12 A mask may be associated with a
\helpref{wxBitmap
}{wxbitmap
}. It is used in
\helpref{wxDC::Blit
}{wxdcblit
} when
13 the source device context is a
\helpref{wxMemoryDC
}{wxmemorydc
} with wxBitmap selected into it that
18 \helpref{wxBitmap
}{wxbitmap
},
\helpref{wxDC::Blit
}{wxdcblit
},
\helpref{wxMemoryDC
}{wxmemorydc
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxMask::wxMask
}\label{wxmaskconstr
}
24 \func{}{wxMask
}{\void}
28 \func{}{wxMask
}{\param{const wxBitmap\&
}{bitmap
}}
30 Constructs a mask from a monochrome bitmap.
32 \func{}{wxMask
}{\param{const wxBitmap\&
}{bitmap
},
\param{const wxColour\&
}{colour
}}
34 Constructs a mask from a bitmap and a colour that indicates the background.
36 \func{}{wxMask
}{\param{const wxBitmap\&
}{bitmap
},
\param{int
}{ index
}}
38 Constructs a mask from a bitmap and a palette index that indicates the background.
40 \wxheading{Parameters
}
42 \docparam{bitmap
}{A valid bitmap.
}
44 \docparam{colour
}{A colour specifying the transparency RGB values.
}
46 \docparam{index
}{Index into a palette, specifying the transparency colour.
}
48 \membersection{wxMask::
\destruct{wxMask
}}
50 \func{}{\destruct{wxMask
}}{\void}
52 Destroys the wxMask object and the underlying bitmap data.
54 \membersection{wxMask::Create
}\label{wxmaskcreate
}
56 \func{bool
}{Create
}{\param{const wxBitmap\&
}{bitmap
}}
58 Constructs a mask from a monochrome bitmap.
60 \func{bool
}{Create
}{\param{const wxBitmap\&
}{bitmap
},
\param{const wxColour\&
}{colour
}}
62 Constructs a mask from a bitmap and a colour that indicates the background.
64 \func{bool
}{Create
}{\param{const wxBitmap\&
}{bitmap
},
\param{int
}{ index
}}
66 Constructs a mask from a bitmap and a palette index that indicates the background.
68 \wxheading{Parameters
}
70 \docparam{bitmap
}{A valid bitmap.
}
72 \docparam{colour
}{A colour specifying the transparency RGB values.
}
74 \docparam{index
}{Index into a palette, specifying the transparency colour.
}