addFilter() 공개 메소드

Add filter to current image
public addFilter ( string | callable $filter )
$filter string | callable
예제 #1
0
파일: FilterTest.php 프로젝트: JBZoo/Image
 /**
  * @expectedException \JBZoo\Image\Exception
  */
 public function testFilterUndefined()
 {
     $img = new Image();
     $img->addFilter('undefined');
 }
예제 #2
0
파일: TextTest.php 프로젝트: JBZoo/Image
 /**
  * @expectedException \JBZoo\Image\Exception
  */
 public function testTextUndefinedFontFile()
 {
     $original = Helper::getOrig('butterfly.jpg');
     $img = new Image($original);
     $img->addFilter('text', 'Nice Butterfly', 'Undefined');
 }