22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Working with Content 8.13<br />

The current position will be set to that ending point. If the starting <strong>and</strong> ending points<br />

specify the same angle, a full circle will be drawn. The position following this<br />

comm<strong>and</strong> will be the specified position.<br />

dlpdfpathaddarcto<br />

This method accepts six parameters:<br />

• The first is a pointer to the path.<br />

• The second is an Xposition of the intersection of tangents.<br />

• The third is the Yposition of the intersection of tangents.<br />

• The fourth is the Xposition of a point defining the second tangent.<br />

• The fifth is the Yposition of a point defining the second tangent.<br />

• The sixth is the radius of the arc.<br />

The two lines (CurrX, CurrY)->(X1,Y1) <strong>and</strong> (X2,Y2)->(X1,Y1) are joined by an arc<br />

of radius (R). The line segment from the current position to the start of the arc is<br />

drawn, followed by the arc itself. The line segment from the end of the arc to the point<br />

X2,Y2 is not drawn. The position following this comm<strong>and</strong> will be the intersection of<br />

the arc with the line (X2,Y2)->(X1,Y1). If the two lines are colinear, a straight line<br />

segment is drawn from current position to (X1,Y1), which then becomes the current<br />

point.<br />

dlpdfpathaddelliparc<br />

This method accepts seven parameters:<br />

• The first is a pointer to the path.<br />

• The second is an Xposition of the arc center point.<br />

• The third is the Yposition of the arc center point.<br />

• The fourth is the horizontal radius (HRad) of the ellipse defining an arc segment.<br />

• The fifth is the vertical radius (VRad) of the same ellipse. The HRad <strong>and</strong> VRad<br />

functions support creating arc segments from an elliptical shape, instead of a<br />

circular shape as described in dlpdfpathaddarc. If the same horizontal <strong>and</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!