Picture.Mask

From Xojo Documentation
Jump to: navigation, search
Property (As Picture)
aPicture.Mask( [Create as Boolean] ) = newPictureValue
or
PictureValue = aPicture.Mask([Create as Boolean])

Allows you to access a mask that controls the transparency of the picture. By default, the optional Create parameter is True. When Create is True, the mask is created automatically; otherwise the mask is returned, whether or not one exists.


Example

This example opens a jpeg file and creates a mask.

Dim p2 As Picture
Dim pic As Picture
Dim f As FolderItem
f = GetOpenFolderItem("image/jpeg")
If f <> Nil Then
pic = Picture.Open(f)
p2 = pic.Mask(True)
End If
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About