예제 #1
0
파일: Image.php 프로젝트: jelito/imager
 /**
  * aplikuje filter a ihned zmeni zdrojovy obrazek,
  * 
  * @param Filter $filter
  */
 public function applyFilter(Filter $filter)
 {
     $this->resource = $filter->apply($this);
     list($this->width, $this->height) = Functions::getResourceDimensions($this->resource);
 }
예제 #2
0
 /**
  * @param resource $canvas
  * @param Image $image
  */
 private function placeOriginalImage($canvas, Image $image)
 {
     Image\Functions::placeImage($canvas, $image->getResource(), 0, 0);
 }