imageline

imageline

(PHP 4, PHP 5, PHP 7)

imagelineDraw a line

Description

bool imageline ( resource $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color )

Draws a line between the two given points.

Parameters

image

An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

登录查看完整内容