GD and Image 函数
PHP Manual

imagefilledrectangle

(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 是图像的最左上角。


GD and Image 函数
PHP Manual