imageline()
imageline - Draw a line
Syntax
bool imageline (
resource $image,
int $x1,
int $y1,
int $x2,
int $y2,
int $color)
Arguments
- image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
- x1 - x-coordinate for first point.
- y1 - y-coordinate for first point.
- x2 - x-coordinate for second point.
- y2 - y-coordinate for second point.
- color - The line color. A color identifier created with imagecolorallocate().
Description
Draws a line between the two given points.
Version
PHP 4, 5
Return value
Returns TRUE on success or FALSE on failure.