|
PHP5中文手册
ps_lineto(PECL ps:1.1.0-1.3.5) ps_lineto — Draws a line 说明
bool ps_lineto
( resource $psdoc
, float $x
, float $y
)
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. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例
Example#1 Drawing a rectangle
<?php |