(PHP 3, PHP 4) ImageLine() は、画像 im 上に col 色で (x1, y1 )から (x2, y2 )に 直線を描画します。(左上が(0, 0)です。) imagecreate() および imagecolorallocate() も参考にしてください。