84 $this->_imageResource = null;
87 $this->_uniqueName = md5(rand(0, 9999). time() . rand(0, 9999));
109 $this->_imageResource = $value;
111 if (!is_null($this->_imageResource)) {
113 $this->_width = imagesx($this->_imageResource);
114 $this->_height = imagesy($this->_imageResource);
135 $this->_renderingFunction = $value;
155 $this->_mimeType = $value;
166 $extension = explode(
'/', $extension);
167 $extension = $extension[1];
169 return $this->_uniqueName . $this->
getImageIndex() .
'.' . $extension;
179 $this->_renderingFunction
182 . parent::getHashCode()
191 $vars = get_object_vars($this);
192 foreach ($vars as $key => $value) {
193 if (is_object($value)) {
194 $this->$key = clone $value;
196 $this->$key = $value;