Grafika\FilterInterface::apply PHP 메소드

apply() 공개 메소드

public apply ( grafika\ImageInterface $image ) : grafika\ImageInterface
$image grafika\ImageInterface
리턴 grafika\ImageInterface
    public function apply($image);

Usage Example

예제 #1
0
파일: Editor.php 프로젝트: kosinix/grafika
 /**
  * Apply a filter to the image. See Filters section for a list of available filters.
  *
  * @param Image $image
  * @param FilterInterface $filter
  *
  * @return Editor
  */
 public function apply(&$image, $filter)
 {
     if ($image->isAnimated()) {
         // Ignore animated GIF for now
         return $this;
     }
     $image = $filter->apply($image);
     return $this;
 }
FilterInterface