Forum und email

imagefilltoborder

(PHP 4, PHP 5)

imagefilltoborder — Flood fill to specific color

설명

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

imagefilltoborder() performs a flood fill whose border color is defined by border . The starting point for the fill is x , y (top left is 0, 0) and the region is filled with color color .

매개변수

font

내장 글꼴 1, 2, 3, 4, 5(큰 숫자가 큰 글꼴)나 imageloadfont()로 등록한 글꼴 식별자를 사용할 수 있습니다.

x

x-coordinate of start

y

y-coordinate of start

border

The border color. A color identifier created with imagecolorallocate()

color

The fill color. A color identifier created with imagecolorallocate()

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.