Draws a line between the two given points.
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
x-coordinate for first point.
y-coordinate for first point.
x-coordinate for second point.
y-coordinate for second point.
The line color. A color identifier created with imagecolorallocate.
Returns true on success or false on failure.
|8.0.0||image expects a GdImage instance now; previously, a resource was expected.|