TransparentMode

<< Click to Display Table of Contents >>

 

TransparentMode

Enum This property specifies a transparency effect mode for this picture. The next table contains possible values for this property.

Available options for the TransparentMode property

Option

Description

0 - Disabled

No transparency is performed (default)

1 - ByColor

Transparency uses a color defined in the TransparentColor property

2 - ByPercent

Picture remains transparent with a transparency percentage specified in the TransparentPercent property

 

The next script contains an example of using this property.

Sub DrawPicture1_Click()
  ' Leaves the blue color transparent
  ' when clicking this Picture object
  TransparentMode = 1 ' ByColor
  TransparentColor = RGB(0, 0, 255)
End Sub

Was this page useful?