public function fill($image) {
        $fill = $this->getConfig('fill');
        $r = $fill[0];
        $g = $fill[1];
        $b = $fill[2];
        $a = isset($fill[3]) ? $fill[3] : 127;

        imagefill($image, 0, 0, imagecolorallocatealpha($image, $r, $g, $b, $a));

        return $image;
    }
public function fill($image) {
        $fill = $this->getConfig('fill');
        $r = $fill[0];
        $g = $fill[1];
        $b = $fill[2];
        $a = isset($fill[3]) ? $fill[3] : 127;

        imagefill($image, 0, 0, imagecolorallocatealpha($image, $r, $g, $b, $a));

        return $image;
    }
public function fill ( $ image ) { $ fill = $ this -> getConfig ( 'fill' ) ; $ r = $ fill [ 0 ] ; $ g = $ fill [ 1 ] ; $ b = $ fill [ 2 ] ; $ a = isset ( $ fill [ 3 ] ) ? $ fill [ 3 ] : 127 ; imagefill ( $ image , 0 , 0 , imagecolorallocatealpha ( $ image , $ r , $ g , $ b , $ a ) ) ; return $ image ; }
Fill the background with an RGB color.

@param resource $image
@return resource
Fill the background with an RGB color .