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.

Working with Content 8.9<br />

Paths<br />

Paths are created in the context of a document <strong>and</strong> represented as a structure,<br />

DLPDFPATH.<br />

dlpdfpathcreate<br />

Used to construct a path, this method accepts no parameters. It will return a pointer<br />

to DLPDFPATH or raise an exception indicating that no memory is available.<br />

dlpdfpathdestroy<br />

Used to destroy, this method accepts a pointer to a DLPDFPATH structure <strong>and</strong> will<br />

return nothing. It will raise the exception Bad Parameter if the pointer is not valid.<br />

dlpdfpathclear<br />

Used to reset a path, this method sets the current position to UNSET, the matrix to<br />

UNITY, <strong>and</strong> removes any path segment present. It will not deallocate the array used to<br />

hold the path, however, since its primary purpose is to lower the overhead associated<br />

with allocation <strong>and</strong> deallocation. It will raise the exception Bad Parameter if it is<br />

called with a NULL pointer.<br />

dlpdfpathcurrentx<br />

This method will return the current X position as an ASFixed integer.<br />

dlpdfpathcurrenty<br />

This method will return the current Y position as an ASFixed integer.<br />

dlpdfpathsize<br />

This method will return the current size of the path array (as a count of ASFixed<br />

integers) as an integer.

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

Saved successfully!

Ooh no, something went wrong!