20202021 wxWidgets team. Licensed under the wxWindows Free Documentation Licence, Version 3 wxMask
wxMask Functions for wxMask class

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.

See: wxBitmap, wxDC:blit/6, wxMemoryDC

wxWidgets docs: wxMask

Default constructor.

Default constructor.

Constructs a mask from a monochrome bitmap.

Constructs a mask from a monochrome bitmap.

Constructs a mask from a bitmap and a colour that indicates the background.

Constructs a mask from a bitmap and a colour that indicates the background.

Destroys the wxMask object and the underlying bitmap data.

Destroys the wxMask object and the underlying bitmap data.

Constructs a mask from a monochrome bitmap.

Constructs a mask from a monochrome bitmap.

Constructs a mask from a bitmap and a colour that indicates the background.

Constructs a mask from a bitmap and a colour that indicates the background.