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.15<br />

same angle, a full circle will be drawn. The position following this comm<strong>and</strong> will be<br />

the specified position.<br />

dlpdfpathaddelliparcto<br />

This method accepts seven parameters:<br />

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

• The second is the 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 horizontal radius (HRad) of the arc.<br />

• The seventh is the vertical radius (VRad) of the arc.<br />

The HRad <strong>and</strong> VRad support drawing elliptical arc segments. The two lines<br />

(CurrX,CurrY)->(X1,Y1) <strong>and</strong> (X2,Y2)->(X1,Y1) are joined by an arc of radius (R).<br />

The line segment from the current position to the start of the arc is drawn, followed<br />

by the arc itself. The line segment from the end of the arc to the point X2,Y2 is not<br />

drawn.<br />

The position following this comm<strong>and</strong> will be the intersection of the arc with the line<br />

(X2,Y2)->(X1,Y1). If the two lines are colinear, a straight line segment is drawn from<br />

the current position to (X1,Y1), which then becomes the current point.<br />

dlpdfpathaddcurve<br />

This method accepts seven parameters:<br />

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

• The second <strong>and</strong> third are the X <strong>and</strong> Y positions of a point which will be Control<br />

Point 1.<br />

• The fourth <strong>and</strong> fifth are the X <strong>and</strong> Y positions of a point which will be Control<br />

Point 2.<br />

• The sixth <strong>and</strong> seventh are the X <strong>and</strong> Y positions of a point which will be the end<br />

point of the curve.<br />

A smooth curve (a cubic Bézier) will be drawn from the current position to the end<br />

position, under direction of the two control points. The current position will be the

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

Saved successfully!

Ooh no, something went wrong!