Picture.Transparent

From Xojo Documentation
Jump to: navigation, search
Property (As Integer)
aPicture.Transparent = newIntegerValue
or
IntegerValue = aPicture.Transparent

Controls the transparency of the white 'layer' of the picture.

It can take on either of the following values:

0 - Not transparent.

1 - White is transparent.

With the availability of alpha channels, you should instead use the constructor in place of this property.

Example

This example turns on transparency (for older Picture files).

Dim pic As Picture
Dim f As FolderItem
f = GetOpenFolderItem("image/jpeg")
If f <> Nil Then
pic = Picture.Open(f)
pic.Transparent = 1
ImageWell1.Image = pic
End If
Personal tools
Namespaces

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