Type Default Value Read Only Description
Long 255 No The alpha opacity.




Allows you to get or set the alpha opacity of the color.

Alpha values can range from 0 to 255. Zero indicates fully transparent, and 255 indicates fully opaque.




Here, we create a PDF document showing how different values of alpha result in different levels of transparency.

Set theDoc = Server.CreateObject("ABCpdf10.Doc")
theDoc.Rect.Inset 20,20
theDoc.FontSize = 300
For i = 1 To 10
  theDoc.Color.Alpha = 255 / i
  theDoc.AddText theDoc.Color.Alpha
  theDoc.Rect.Move 25, -50
theDoc.Save "c:\mypdfs\coloralpha.pdf"