imagerectangle

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

imagerectangle畫一個矩形

說明

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

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