HaruPage::lineTo

(PECL haru >= 0.0.1)

HaruPage::lineToDraw a line from the current point to the specified point

说明

HaruPage::lineTo ( float $x , float $y ) : bool

Draws a line from the current point to the specified point.

参数

x

y

返回值

Returns TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

参见

相关文章
php eventbuffer moves the specified number of bytes from a source buffer to the end of the current bufferphp ncurses 函数 clear screen from current position to end of linephp ncurses 函数 draw a horizontal line at current position using an attributed character and max. n characters longphp ncurses 函数 returns current line kill characterphp ncurses 函数 set new position and draw a horizontal line using an attributed character and max. n characters longphp ncurses 函数 draw a vertical line at current position using an attributed character and max. n characters longphp newt 函数 replaces the current help line with the one from the stackphp gmagickdraw applies the specified rotation to the current coordinate spacephp harupage append a straight line from the current point to the start point of the pathphp harupage concatenate current transformation matrix of the page and the specified matrixphp harupage append a bezier curve to the current pathphp harupage get the current position for text printingphp harupage get the current line cap stylephp harupage get the current line join stylephp harupage get the current line widthphp harupage get the current value of line spacingphp harupage draw a line from the current point to the specified pointphp harupage calculate the byte length of characters which can be included on one line of the specified widthphp harupage move the current position to the start of the next line and print the textphp splobjectstorage removes all objects except for those contained in another storage from the current storage
关注编程学问公众号