예제 #1
0
 /**
  * This function executes the effect on the given image and its internal datastructure.
  * This function should not be called manually. For applying effects, see the applyEffect function in the given image.
  * @see \System\Image\Image::applyEffect()
  * @param \System\Image\Image An image or a subclass
  * @param mixed The image datastructure to work with
  */
 public final function executeFilter(\System\Image\Image $image, $imageData)
 {
     $imagickClass = '\\System\\Image\\Imagick\\Image';
     if ($image instanceof $imagickClass) {
         return $this->executeFilterImagick($imageData);
     } else {
         if ($image instanceof \System\Image\Image) {
             return $this->executeFilterGD($imageData);
         } else {
             throw new \System\Error\Exception\InvalidMethodException('Cannot execute a filter on the given input type: ' . \System\Type::getClass($image));
         }
     }
 }
예제 #2
0
 /**
  * String representation of the current object
  * @return string A string representation of the current object
  */
 public function __toString()
 {
     return \System\Type::getClass($this) . ' (' . $this->count() . ')';
 }
예제 #3
0
 /**
  * Returns the current classname, excluding namespaces
  * @return string The name of the class
  */
 public final function getBaseClassName()
 {
     return \System\Type::getClass($this, true);
 }