imagefilltoborder

(PHP 3, PHP 4, PHP 5)

imagefilltoborder -- 區功能變數填充到指定彩色的邊界為止

說明

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

imagefilltoborder()xy(圖像左上角為 0, 0)點開始用 color 彩色執行區功能變數填充,直到碰到彩色為 border 的邊界為止。【註:邊界內的所有彩色都會被填充。若果特殊的邊界色和該點彩色相同,則沒有填充。若果圖像中沒有該邊界色,則整幅圖像都會被填充。】