コード例 #1
0
 /**
  * saves image file for given tile
  *
  * @param resource $image
  * @param int $x
  * @param int $y
  * @param int $zoom
  */
 public function addTile($image, $x, $y, $zoom)
 {
     $this->_imageHandler->saveImage($image, $this->_getFileName($x, $y, $zoom));
     if ($this->_getSizeOfCache() > $this->_cacheSize) {
         $this->_cleanCache();
     }
 }