GD Funkcje
PHP Manual

imagefilltoborder

(PHP 4, PHP 5)

imagefilltoborderFlood fill to specific color

Opis

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 .

Parametry

obraz

Zasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak 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()

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.


GD Funkcje
PHP Manual