public function render()
    {
        $image = null;

        if ($this->resource) {
            ob_start();
            $this->outputBufferByImage(null, $this->quality);
            $string = ob_get_contents();
            ob_end_clean();

            if (!empty($string)) {
                $image = imagecreatefromstring($string);
            }
        }

        return $image;
    }
public function render()
    {
        $image = null;

        if ($this->resource) {
            ob_start();
            $this->outputBufferByImage(null, $this->quality);
            $string = ob_get_contents();
            ob_end_clean();

            if (!empty($string)) {
                $image = imagecreatefromstring($string);
            }
        }

        return $image;
    }
public function render ( ) { $ image = null ; if ( $ this -> resource ) { ob_start ( ) ; $ this -> outputBufferByImage ( null , $ this -> quality ) ; $ string = ob_get_contents ( ) ; ob_end_clean ( ) ; if ( ! empty ( $ string ) ) { $ image = imagecreatefromstring ( $ string ) ; } } return $ image ; }
Render the image in-memory and return the resource.

@access public
@return resource | null  Return the resource or null.
Render the image in - memory and return the resource .