30 if (!defined(
'PHPEXCEL_ROOT')) {
34 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../');
38 require_once PHPEXCEL_ROOT .
'PHPExcel/IComparable.php';
41 require_once PHPEXCEL_ROOT .
'PHPExcel/Worksheet.php';
44 require_once PHPEXCEL_ROOT .
'PHPExcel/Worksheet/BaseDrawing.php';
47 require_once PHPEXCEL_ROOT .
'PHPExcel/Worksheet/Drawing/Shadow.php';
105 $this->_imageResource = null;
108 $this->_uniqueName = md5(rand(0, 9999). time() . rand(0, 9999));
130 $this->_imageResource = $value;
132 if (!is_null($this->_imageResource)) {
134 $this->_width = imagesx($this->_imageResource);
135 $this->_height = imagesy($this->_imageResource);
156 $this->_renderingFunction = $value;
176 $this->_mimeType = $value;
187 $extension = explode(
'/', $extension);
188 $extension = $extension[1];
190 return $this->_uniqueName . $this->
getImageIndex() .
'.' . $extension;
200 $this->_renderingFunction
203 . parent::getHashCode()
236 $this->_hashIndex = $value;
243 $vars = get_object_vars($this);
244 foreach ($vars as
$key => $value) {
245 if (is_object($value)) {
246 $this->
$key = clone $value;
248 $this->
$key = $value;