示例#1
0
 public function createImage($path)
 {
     return $this->engine->createImage($path);
 }
示例#2
0
文件: Image.php 项目: appotter/phppdf
 public function createSource(Engine $engine)
 {
     try {
         return $engine->createImage($this->getAttribute('src'));
     } catch (InvalidResourceException $e) {
         if ($this->getAttribute('ignore-error')) {
             return EmptyImage::getInstance();
         }
         throw $e;
     }
 }