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.
A mask may be associated with a Bitmap. It is used in DC#blit when the source device context is a MemoryDC with Bitmap selected into it that contains a mask.
Mask.new(% Bitmap bitmap)
Constructs a mask from a monochrome bitmap.
Mask.new(% Bitmap bitmap,
% Colour colour)
Constructs a mask from a bitmap and a colour that indicates the background.
Mask.new(Bitmap bitmap, Integer index)
Constructs a mask from a bitmap and a palette index that indicates the background. Not yet implemented for GTK.
destructor()
Destroys the Mask object and the underlying bitmap data.
Boolean create(Bitmap bitmap)
Constructs a mask from a monochrome bitmap.
Boolean create(Bitmap bitmap, Colour colour)
Constructs a mask from a bitmap and a colour that indicates the background.
Boolean create(Bitmap bitmap, Integer index)
Constructs a mask from a bitmap and a palette index that indicates the background. Not yet implemented for GTK.
[This page automatically generated from the Textile source at Thu May 01 00:50:41 +0100 2008]