Picture.CopyMask

From Xojo Documentation


Method

Picture.CopyMask() As Picture

New in 2011r4

Supported for all project types and targets.

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.