addEffect() 공개 메소드

Attempts to apply requested effect to this image.
public addEffect ( string $type, array $params )
$type string The type of effect to apply.
$params array Any parameters for the effect.
예제 #1
0
파일: Image.php 프로젝트: platolin/horde
 /**
  * Add an effect to the effect stack
  *
  * @param string $type    The effect to add.
  * @param array  $params  The effect parameters.
  *
  * @throws Ansel_Exception
  */
 public function addEffect($type, $params = array())
 {
     try {
         $this->_image->addEffect($type, $params);
     } catch (Horde_Image_Exception $e) {
         Horde::log($e, 'ERR');
         throw new Ansel_Exception($e);
     }
 }