ps_lineto()
ps_lineto - Draws a line
Syntax
bool ps_lineto (
resource $psdoc,
float $x,
float $y)
Arguments
- 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.
Description
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.
Version
PHP PECL ps >= 1.1.0
Return value
Returns TRUE on success or FALSE on failure.