ps_lineto

PECL ps >= 1.1.0
ps_lineto - Draws a line
Manual
Code Examples

ps_lineto( resource$psdoc, float$x, float$y ): bool

Adds a straight line from the current point to the given coordinates to the current path. Use ps_moveto to set the starting point of the line.

Parameters

psdoc

Resource identifier of the postscript file as returned by ps_new.

x

x-coordinate of the end point of the line.

y

y-coordinate of the end point of the line.

Return Values

Returns true on success or false on failure.

Related Functions

Example of ps_lineto

Show all examples for ps_lineto

PHP Version:


Function ps_lineto:

PostScript document creation Functions

Most used PHP functions