imagefilledrectangle

(PHP 4, PHP 5, PHP 7, PHP 8)

imagefilledrectangle畫一矩形并填充

說明

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

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