(PHP 4, PHP 5, PHP 7, PHP 8)
imagefilltoborder — 區域填充到指定顏色的邊界為止
$image
,$x
,$y
,$border
,$color
imagefilltoborder() 從
x
,y
(圖像左上角為
0, 0)點(diǎn)開(kāi)始用 color
顏色執行區域填充,直到碰到顏色為 border
的邊界為止?!咀ⅲ哼吔鐑鹊乃蓄伾紩?huì )被填充。如果指定的邊界色和該點(diǎn)顏色相同,則沒(méi)有填充。如果圖像中沒(méi)有該邊界色,則整幅圖像都會(huì )被填充?!?