protected function drawFilledRectangle($im, $x1, $y1, $x2, $y2, $color = self::COLOR_FG) {
        if ($x1 > $x2) { // Swap
            $x1 ^= $x2 ^= $x1 ^= $x2;
        }

        if ($y1 > $y2) { // Swap
            $y1 ^= $y2 ^= $y1 ^= $y2;
        }

        imagefilledrectangle($im,
            ($x1 + $this->offsetX) * $this->scale + $this->pushLabel[0],
            ($y1 + $this->offsetY) * $this->scale + $this->pushLabel[1],
            ($x2 + $this->offsetX) * $this->scale + $this->pushLabel[0] + $this->scale - 1,
            ($y2 + $this->offsetY) * $this->scale + $this->pushLabel[1] + $this->scale - 1,
            $this->getColor($im, $color));
    }
protected function drawFilledRectangle($im, $x1, $y1, $x2, $y2, $color = self::COLOR_FG) {
        if ($x1 > $x2) { // Swap
            $x1 ^= $x2 ^= $x1 ^= $x2;
        }

        if ($y1 > $y2) { // Swap
            $y1 ^= $y2 ^= $y1 ^= $y2;
        }

        imagefilledrectangle($im,
            ($x1 + $this->offsetX) * $this->scale + $this->pushLabel[0],
            ($y1 + $this->offsetY) * $this->scale + $this->pushLabel[1],
            ($x2 + $this->offsetX) * $this->scale + $this->pushLabel[0] + $this->scale - 1,
            ($y2 + $this->offsetY) * $this->scale + $this->pushLabel[1] + $this->scale - 1,
            $this->getColor($im, $color));
    }
protected function drawFilledRectangle ( $ im , $ x1 , $ y1 , $ x2 , $ y2 , $ color = self :: COLOR_FG ) { if ( $ x1 > $ x2 ) { // Swap
 $ x1 ^= $ x2 ^= $ x1 ^= $ x2 ; } if ( $ y1 > $ y2 ) { // Swap
 $ y1 ^= $ y2 ^= $ y1 ^= $ y2 ; } imagefilledrectangle ( $ im , ( $ x1 + $ this -> offsetX ) * $ this -> scale + $ this -> pushLabel [ 0 ] , ( $ y1 + $ this -> offsetY ) * $ this -> scale + $ this -> pushLabel [ 1 ] , ( $ x2 + $ this -> offsetX ) * $ this -> scale + $ this -> pushLabel [ 0 ] + $ this -> scale - 1 , ( $ y2 + $ this -> offsetY ) * $ this -> scale + $ this -> pushLabel [ 1 ] + $ this -> scale - 1 , $ this -> getColor ( $ im , $ color ) ) ; }
Draws a filled rectangle on the resource at a specific position with a determined color.

@param resource $im
@param int $x1
@param int $y1
@param int $x2
@param int $y2
@param int $color
Draws a filled rectangle on the resource at a specific position with a determined color .