imagerectangle

(PHP 3, PHP 4, PHP 5)

imagerectangle -- 畫一個矩形

說明

bool imagerectangle ( resource image, int x1, int y1, int x2, int y2, int col )

imagerectangle()col 彩色在 image 圖像中畫一個矩形,其左上角坐標為 x1, y1,右下角坐標為 x2, y2。圖像的左上角坐標為 0, 0。