예제 #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;
     }
 }