Esempio n. 1
0
 /**
  * Creates a new image
  * 
  * @param string $path The image file path
  */
 public function __construct($path)
 {
     parent::__construct($path);
     if (!is_array(@getimagesize($this->path))) {
         throw new DualityException('Duality Error: invalid image', DualityException::E_FILE_INVALIDTYPE);
     }
 }
Esempio n. 2
0
 /**
  * Holds the stream file path
  * 
  * @param string $path The file path
  */
 public function __construct($path)
 {
     parent::__construct($path);
 }