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.

Samples <strong>and</strong> Links 17.5<br />

Paths<br />

This sample shows how to draw various simple shapes using <strong>DLI</strong>, <strong>and</strong> how to draw<br />

PDF paths with <strong>DLI</strong>. A path in PDF, like in PostScript, consists of a series of<br />

movements from a starting point. A path is filled with the fill color in the<br />

graphics state, <strong>and</strong> the lines connecting the movements of the path are drawn with<br />

the stroke color in the graphics state. This sample also demonstrates some<br />

common matrix operations, such as rotations <strong>and</strong> translations of paths.<br />

For common shapes, <strong>DLI</strong> has shortcut operations to create paths, such as for<br />

rectangles <strong>and</strong> arcs.<br />

This sample also demonstrates the use of CMYK color spaces. For an example of<br />

using RGB color spaces, please see “Annotations” on page 17.15.

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

Saved successfully!

Ooh no, something went wrong!