imagefilledrectangle

(PHP 3, PHP 4, PHP 5)

imagefilledrectangle -- 畫一矩形並填充

說明

bool imagefilledrectangle ( resource image, int x1, int y1, int x2, int y2, int color )

imagefilledrectangle()image 圖像中畫一個用 color 彩色填充了的矩形,其左上角坐標為 x1y1,右下角坐標為 x2y2。0, 0 是圖像的最左上角。