imagerectangle
(PHP 4, PHP 5)
imagerectangle — Draw a rectangle
설명
bool imagerectangle
( resource $image
, int $x1
, int $y1
, int $x2
, int $y2
, int $color
)
imagerectangle() creates a rectangle starting at the specified coordinates.
매개변수
- font
-
내장 글꼴 1, 2, 3, 4, 5(큰 숫자가 큰 글꼴)나 imageloadfont()로 등록한 글꼴 식별자를 사용할 수 있습니다.
- 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()
반환값
성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.