The following code adds two ovals to a document. The outline oval
is semi-transparent.
[C#]
Doc theDoc = new
Doc(); theDoc.Width = 80; theDoc.Rect.Inset(50,
50); theDoc.Color.String = "255 0
0"; theDoc.AddOval(true); theDoc.Color.String = "0 255 0
a128"; theDoc.AddOval(false); theDoc.Save(Server.MapPath("docaddoval.pdf")); theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc =
New Doc() theDoc.Width = 80 theDoc.Rect.Inset(50,
50) theDoc.Color.String = "255 0
0" theDoc.AddOval(True) theDoc.Color.String = "0 255 0
a128" theDoc.AddOval(False) theDoc.Save(Server.MapPath("docaddoval.pdf")) theDoc.Clear()
docaddoval.pdf
|