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.

8.16 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

end position of the line at completion of this operation. If the end position specified is<br />

identical to the current position, no segment will be appended, <strong>and</strong> no notice will be<br />

given (Optimization).<br />

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

dlpdfpathaddcurver<br />

This method accepts seven parameters:<br />

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

• The second <strong>and</strong> third are the distance from current point to the X <strong>and</strong> Y positions of<br />

a point which will be used for Control Point 1.<br />

• The fourth <strong>and</strong> fifth are the distance from current point to the X <strong>and</strong> Y positions of<br />

a point which will be Control Point 2.<br />

• The sixth <strong>and</strong> seventh are the distance from the control point to the X <strong>and</strong> Y<br />

positions of a point which will be the end 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<br />

end position of the line at completion of this operation. If the end position specified is<br />

identical to the current position, no segment will be appended, <strong>and</strong> no notice will be<br />

given (Optimization).<br />

dlpdfpathaddcurvev<br />

This method accepts five 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 used for<br />

Control Point 2.<br />

• The fourth <strong>and</strong> fifth are the X <strong>and</strong> Y positions of the end 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. Control Point 1 is the current<br />

position. The current position will be the end position of the line at completion of this

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

Saved successfully!

Ooh no, something went wrong!