Beispiel #1
0
 /**
  * @see	\wcf\system\image\adapter\IImageAdapter::overlayImage()
  */
 public function overlayImage($file, $x, $y, $opacity)
 {
     // validate file
     if (!file_exists($file)) {
         throw new SystemException("Image '" . $file . "' does not exist.");
     }
     // validate opacity
     if ($opacity < 0 || $opacity > 1) {
         throw new SystemException("Invalid opacity value given.");
     }
     $this->adapter->overlayImage($file, $x, $y, $opacity);
 }
Beispiel #2
0
 /**
  * @see	wcf\system\image\adapter\IImageAdapter::getHeight()
  */
 public function getHeight()
 {
     return $this->adapter->getHeight();
 }