protected function drawPixel($im, $x, $y, $color = self::COLOR_FG) {
        $xR = ($x + $this->offsetX) * $this->scale + $this->pushLabel[0];
        $yR = ($y + $this->offsetY) * $this->scale + $this->pushLabel[1];

        // We always draw a rectangle
        imagefilledrectangle($im,
            $xR,
            $yR,
            $xR + $this->scale - 1,
            $yR + $this->scale - 1,
            $this->getColor($im, $color));
    }
protected function drawPixel($im, $x, $y, $color = self::COLOR_FG) {
        $xR = ($x + $this->offsetX) * $this->scale + $this->pushLabel[0];
        $yR = ($y + $this->offsetY) * $this->scale + $this->pushLabel[1];

        // We always draw a rectangle
        imagefilledrectangle($im,
            $xR,
            $yR,
            $xR + $this->scale - 1,
            $yR + $this->scale - 1,
            $this->getColor($im, $color));
    }
protected function drawPixel ( $ im , $ x , $ y , $ color = self :: COLOR_FG ) { $ xR = ( $ x + $ this -> offsetX ) * $ this -> scale + $ this -> pushLabel [ 0 ] ; $ yR = ( $ y + $ this -> offsetY ) * $ this -> scale + $ this -> pushLabel [ 1 ] ; // We always draw a rectangle
 imagefilledrectangle ( $ im , $ xR , $ yR , $ xR + $ this -> scale - 1 , $ yR + $ this -> scale - 1 , $ this -> getColor ( $ im , $ color ) ) ; }
Draws 1 pixel on the resource at a specific position with a determined color.

@param resource $im
@param int $x
@param int $y
@param int $color
Draws 1 pixel on the resource at a specific position with a determined color .