Description
Represents a group of page elements that will have transparency.
For a list of all members defined in this module, see TransparencyGroup members.
Object Model
Remarks
This class can be used to add transparency to page elements. Any page element that is placed in this group will be displayed with the transparency values and attributes of this group.
Example
[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> <% ' Create a PDF Document Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) ' Create a Page and add it to the document Dim MyPage Set MyPage = MyDocument.AddPage() ' Create an area group to which elements will be added Dim MyGroup Set MyGroup = MyPage.AddTransparencyGroup( 0 ) 'Change the Alpha Value from 1 to 0 and vice versa MyGroup.FillAlpha = 1 'Change Stroke Alpha to see line Page Elements and Borders of Page Elements appear and disappear MyGroup.StrokeAlpha = 1 ' Add page elements to the group Dim MyRectangle Set MyRectangle = MyGroup.AddRectangle( 0, 0, 200, 200 ) MyRectangle.BorderWidth = 3 MyRectangle.FillColor = "2E8B57" 'Green MyRectangle.BorderColor = "FF0000" 'Red MyRectangle.ApplyColor = DPDF_ApplyColor_Both MyGroup.AddLine 0, 100, 100, 0, 3, "FFFFF0" 'Ivory Color MyGroup.AddLine 100, 0, 200, 100, 3,"FFFFF0" MyGroup.AddLine 200, 100, 100, 200, 3, "FFFFF0" MyGroup.AddLine 100, 200, 0, 100, 3, "FFFFF0" ' Draw the PDF MyDocument.DrawToWeb Set MyPage = Nothing Set MyDocument = Nothing %>
|
See Also
TransparencyGroup Members