Adds a pie slice to the current page.

 

   

Syntax
 

GraphicID = Doc.AddPie(AngleStart, AngleEnd, Filled)

 

   

Params
 
Name Type Description
AngleStart Double The start angle of the pie slice in degrees.
AngleEnd Double The end angle of the pie slice in degrees.
Filled Boolean Whether to fill the pie slice rather than simply outline it.
GraphicID Long The Object ID of the newly added Graphic object.

 

   

Notes
 

Adds a pie slice to the current page. The slice is drawn in the current color at the current width and with the current options.

The pie slice represents a segment of the oval which would fill the current rectangle. Drawing starts at the start angle, and the arc is swept out until the end angle is reached. Angles are measured anti-clockwise with zero at three o'clock. The slice may be outlined or filled depending on the values passed to the method.

The AddPie function returns the Object ID of the newly added Graphic object.

 

   

Example
 

The following code adds two pie slices to a document.

Set theDoc = Server.CreateObject("ABCpdf10.Doc")
theDoc.Width = 80
theDoc.Rect.Inset 50, 50
theDoc.Color = "255 0 0"
theDoc.AddPie 0, 90, True
theDoc.Color = "0 255 0"
theDoc.AddPie 180, 270, False
theDoc.Save "c:\mypdfs\docaddpie.pdf"


docaddpie.pdf