TransparentColor

<< Click to Display Table of Contents >>

 

TransparentColor

Color When the TransparentMode property is set to 1 (one), this property defines which color on this picture is not drawn, and that picture remains transparent in these areas. In scripts, use VBScript's RGB method to create a color to link to this property. Default value of this property is white (RGB(255, 255, 255)). The next script contains an example of using this property.

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

Was this page useful?