function newImage()
    {
        $args = func_get_args();
        $argc = func_num_args();

        if ($this->_addImage($argc, $args))
        {
            foreach ($this->_img['operator'] as $key => $value)
            {
                $this->_img['main'][$key] = $value;
            }
            $this->_img['main']['output_type'] = $this->_img['main']['type'];
            unset($this->_img['operator']);
            return true;
        }
        else
        {
            //trigger_error($this->_error_prefix . 'No appropriate constructor found.', E_USER_ERROR);
            return null;
        }
    }
function newImage()
    {
        $args = func_get_args();
        $argc = func_num_args();

        if ($this->_addImage($argc, $args))
        {
            foreach ($this->_img['operator'] as $key => $value)
            {
                $this->_img['main'][$key] = $value;
            }
            $this->_img['main']['output_type'] = $this->_img['main']['type'];
            unset($this->_img['operator']);
            return true;
        }
        else
        {
            //trigger_error($this->_error_prefix . 'No appropriate constructor found.', E_USER_ERROR);
            return null;
        }
    }
function newImage ( ) { $ args = func_get_args ( ) ; $ argc = func_num_args ( ) ; if ( $ this -> _addImage ( $ argc , $ args ) ) { foreach ( $ this -> _img [ 'operator' ] as $ key => $ value ) { $ this -> _img [ 'main' ] [ $ key ] = $ value ; } $ this -> _img [ 'main' ] [ 'output_type' ] = $ this -> _img [ 'main' ] [ 'type' ] ; unset ( $ this -> _img [ 'operator' ] ) ; return true ; } else { //trigger_error($this->_error_prefix . 'No appropriate constructor found.', E_USER_ERROR); return null ; } }
Flush all image resources and init a new one

Parameter:<br>
<i>string</i> <b>$file</b> imagefile to load<br>
Or:<br>
<i>integer</i> <b>$width</b> imagewidth of new image to be created<br>
<i>integer</i> <b>$height</b> imageheight of new image to be created<br>
<i>string</i> <b>$fillcolor</b> optional fill the new image with this color (hexformat, e.g. '#FF0000')<br>
Flush all image resources and init a new one