protected function initDestImageResource() 
    {
    	// gif does not supports truecolor for resize
    	if (function_exists("ImageCreateTrueColor") && $this->getExtension() != 'gif') {
    		$this->destImageResource = ImageCreateTrueColor($this->destImageWidth, $this->destImageHeight);
    	} else {
    		$this->destImageResource = ImageCreate($this->destImageWidth, $this->destImageHeight);
    	}
    	
    	return $this;
    }
protected function initDestImageResource() 
    {
    	// gif does not supports truecolor for resize
    	if (function_exists("ImageCreateTrueColor") && $this->getExtension() != 'gif') {
    		$this->destImageResource = ImageCreateTrueColor($this->destImageWidth, $this->destImageHeight);
    	} else {
    		$this->destImageResource = ImageCreate($this->destImageWidth, $this->destImageHeight);
    	}
    	
    	return $this;
    }
protected function initDestImageResource ( ) { // gif does not supports truecolor for resize if ( function_exists ( "ImageCreateTrueColor" ) && $ this -> getExtension ( ) != 'gif' ) { $ this -> destImageResource = ImageCreateTrueColor ( $ this -> destImageWidth , $ this -> destImageHeight ) ; } else { $ this -> destImageResource = ImageCreate ( $ this -> destImageWidth , $ this -> destImageHeight ) ; } return $ this ; }
Init the destination resource image.
This is an empty image and use the width and height values
of the source image if resize is not called by the user

@throws \RuntimeException
@return resource
Init the destination resource image . This is an empty image and use the width and height values of the source image if resize is not called by the user