set-bitmap in image-snip%
Sets the bitmap that is displayed by the snip. This method also accepts an optional mask
to be used when drawing the bitmap (see
draw-bitmap), but supplying the mask directly is now depracted. Instead, if no
mask is supplied but the bitmap's
get-loaded-mask method produces a bitmap of the same dimensions, it is used as the
mask. Furthermore, such a mask is saved with the snip when it is
saved to a file or copied (whereas a directly supplied mask is not
saved).
The supplied bitmap must not be selected into a bitmap-dc%
object, otherwise an exn:application:mismatch exception is raised, and it cannot be selected into
a bitmap-dc% as long as it belongs to the snip, but it
can be used as a pen or brush stipple.
( -> void
send an-image-snip set-bitmap bm mask)
bm : bitmap% object
mask = : #fbitmap% object or #f