imagefilltoborder

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

imagefilltoborder區(qū)域填充到指定顏色的邊界為止

說明

imagefilltoborder(
    resource $image,
    int $x,
    int $y,
    int $border,
    int $color
): bool

imagefilltoborder()x,y(圖像左上角為 0, 0)點開始用 color 顏色執(zhí)行區(qū)域填充,直到碰到顏色為 border 的邊界為止?!咀ⅲ哼吔鐑?nèi)的所有顏色都會被填充。如果指定的邊界色和該點顏色相同,則沒有填充。如果圖像中沒有該邊界色,則整幅圖像都會被填充?!?