畫一個矩形

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 影象中畫一個矩形,其左上角座標為 x1, y1,右下角座標為 x2, y2。影象的左上角座標為 0, 0。

Leave a Reply

Your email address will not be published. Required fields are marked *