public function addRectangle($x, $y, $width, $height, $invert = false)
    {
        $this->addPolygonCore(array(
            new Point($x, $y),
            new Point($x + $width, $y),
            new Point($x + $width, $y + $height),
            new Point($x, $y + $height),
        ), $invert);
    }
public function addRectangle($x, $y, $width, $height, $invert = false)
    {
        $this->addPolygonCore(array(
            new Point($x, $y),
            new Point($x + $width, $y),
            new Point($x + $width, $y + $height),
            new Point($x, $y + $height),
        ), $invert);
    }
public function addRectangle ( $ x , $ y , $ width , $ height , $ invert = false ) { $ this -> addPolygonCore ( array ( new Point ( $ x , $ y ) , new Point ( $ x + $ width , $ y ) , new Point ( $ x + $ width , $ y + $ height ) , new Point ( $ x , $ y + $ height ) , ) , $ invert ) ; }
Adds a rectangle to the image.

@param float $x The x-coordinate of the rectangle upper-left corner.
@param float $y The y-coordinate of the rectangle upper-left corner.
@param float $width The width of the rectangle.
@param float $height The height of the rectangle.
@param bool $invert If true the area of the rectangle will be removed
from the filled area.
Adds a rectangle to the image .