imageline

(PHP 3, PHP 4 )

imageline -- 画一条直线

说明

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

imageline() 用 color 颜色从坐标 x1,y1 到 x2,y2(图像左上角为 0, 0)画一条直线。

参见 imagecreate() 和 imagecolorallocate()。