Adds an arc to the current page.

 

   
Syntax
 
     

GraphicID = Doc.AddArc(AngleStart, AngleEnd, CenterX, CenterY, RadiusX, RadiusY)

 

   
Params
 
     
Name   Type   Description
AngleStart Float The start angle of the arc in degrees.
AngleEnd Float The end angle of the arc in degrees.
CenterX Float The horizontal center of the arc.
CenterY Float The vertical center of the arc.
RadiusX Float The horizontal radius of the arc.
RadiusY Float The vertical radius of the arc.
GraphicID Long The Object ID of the newly added Graphic Object.

 

   
Notes
 
     

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

The arc is fixed at the center coordinate and can have different horizontal and vertical radii. 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 AddArc function returns the Object ID of the newly added Graphic Object.

 

   
Example
 
     

The following code adds an arc to a document.

Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.Width = 24
theDoc.Color = "120 0 0"
theDoc.AddArc 0, 270, 300, 400, 200, 300
theDoc.Save "c:\mypdfs\docaddarc.pdf"


docaddarc.pdf

 

   

 

Browser Based Help. Published by chm2web software.