Picture.CopyMask
From Xojo Documentation
Method
When used on a Picture with an alpha channel, this takes the image’s alpha channel and creates the equivalent mask. If used on a Picture with a mask, it simply returns a copy of the current mask. In neither case does it alter the original image and the copied mask is not updated when any drawing happens on the original Picture.