/** * Saves the rendered image to a given file. * * @param string $filename * @return boolean * @access public */ function saveImage($filename) { if ($fp = @fopen($filename, 'w')) { @fputs($fp, $this->svg->bufferObject()); @fclose($fp); return true; } return false; }
/** * Returns the raw data for this image. * * @return string The raw image data. */ public function raw() { return $this->_svg->bufferObject(); }