GD Funkcje
PHP Manual

imagerectangle

(PHP 4, PHP 5)

imagerectangleDraw a rectangle

Opis

bool imagerectangle ( resource $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color )

imagerectangle() creates a rectangle starting at the specified coordinates.

Parametry

obraz

Zasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak imagecreatetruecolor().

x1

Upper left x coordinate

y1

Upper left y coordinate 0, 0 is the top left corner of the image.

x2

Bottom right x coordinate

y2

Bottom right y coordinate

color

A color identifier created with imagecolorallocate()

Zwracane wartości

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


GD Funkcje
PHP Manual