get-loaded-mask in bitmap%
Returns a mask bitmap that is stored with this bitmap.
When a GIF file is loaded with 'gif/mask or
'unknown/mask and the file contains a transparent ``color'', a
mask bitmap is generated to identify the transparent pixels. The mask
bitmap is monochrome, with white pixels where the loaded bitmap is
transparent and black pixels everywhere else.
When a PNG file is loaded with 'png/mask or
'unknown/mask and the file contains a mask or alpha channel,
a mask bitmap is generated to identify the mask or alpha channel. If
the file contains a mask or an alpha channel with only extreme
values, the mask bitmap is monochrome, otherwise it is grayscale
(representing the alpha channel inverted).
The mast bitmap is not used automatically by drawing routines. The
mask bitmap can be extracted and supplied explicitly as a mask (e.g.,
as the sixth argument to
draw-bitmap). The mask bitmap is used by
save-file when saving a bitmap as 'png if the mask has the same
dimensions as the saved bitmap. The mask bitmap is also used
automatically when the bitmap is a control label.
(->senda-bitmapget-loaded-mask)bitmap%object or#f