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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.12. <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

dlpdfpathaddcurve<br />

This is the first of the four methods which add a spline, or cubic Bézier curve, to the<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

path.<br />

All Bézier curves consist of four points:<br />

Xctrl1/<br />

Yctrl1<br />

Xend/<br />

Yend<br />

Xstart/<br />

Ystart<br />

Xctrl2/<br />

Yctrl2<br />

This method (as well as the following three) uses current position as the starting point<br />

of the curve. If no starting point is specified, the method will raise an exception<br />

(genErrBadParm).<br />

The first two parameters of this method are the position of Control Point 1, the<br />

second two parameters are the position of Control Point 2, <strong>and</strong> the last two<br />

parameters are the position of the end point of the curve.<br />

Following this method, the current position will be the end point of the curve.<br />

dlpdfpathaddcurver<br />

This method is identical to dlpdfpathaddcurve, except that the positions are<br />

expressed as relative distances from the current point, not absolute distances from the<br />

origin.

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

Saved successfully!

Ooh no, something went wrong!