|
imagefilltoborderFlood fill to specific color Description
bool imagefilltoborder(
GdImage $image ,int $x ,int $y ,int $border_color ,int $color )
imagefilltoborder performs a flood fill
whose border color is defined by Parameters
Return Values
Returns Changelog
Examples
Example #1 Filling an ellipse with a color
The above example will output something similar to: NotesThe algorithm does not explicitly remember which pixels have already been set, but rather infers that from the color of the pixel, so it cannot distinguish between freshly set pixels and pixels that are already there. That means chosing any fill color that is already used in the image may yield undesired results. |