/** * 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); }
/** * @param resource $canvas * @param Image $image */ private function placeOriginalImage($canvas, Image $image) { Image\Functions::placeImage($canvas, $image->getResource(), 0, 0); }