(PHP 3, PHP 4 , PHP 5)
imagesetpixel()は画像image 上に col色で座標 (x,y) (左上が0, 0) に点を描画します。
imagecreate()および imagecolorallocate()も参考にしてください。