PS_RECT(3) 1 PS_RECT(3)
ps_rect - Draws a rectangle
SYNOPSIS
bool ps_rect (resource $psdoc, float $x, float $y, float $width, float $height)
DESCRIPTION
Draws a rectangle with its lower left corner at ($x, $y). The rectangle starts and ends in its lower left corner. If this function is
called outside a path it will start a new path. If it is called within a path it will add the rectangle as a subpath. If the last drawing
operation does not end in the lower left corner then there will be a gap in the path.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $x
- x-coordinate of the lower left corner of the rectangle.
o $y
- y-coordinate of the lower left corner of the rectangle.
o $width
- The width of the image.
o $height
- The height of the image.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
ps_arc(3), ps_cirle(3), ps_lineto(3).
PHP Documentation Group PS_RECT(3)