imagefilltoborder
(PHP 4, PHP 5)
imagefilltoborder — Flood fill to specific color
Description
bool imagefilltoborder
( resource $image
, int $x
, int $y
, int $border
, int $color
)
Parameters
-
image
-
An image resource, returned by one of the image creation functions,
such as imagecreatetruecolor().
-
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().
Return Values
Returns TRUE on success or FALSE on failure.