/**
  * (non-PHPdoc)
  * @see GDImage_Image#getChannels()
  */
 function getChannels()
 {
     $args = func_get_args();
     if (count($args) == 1 && is_array($args[0])) {
         $args = $args[0];
     }
     return GDImage_OperationFactory::get('CopyChannelsPalette')->execute($this, $args);
 }
Exemplo n.º 2
0
 /**
  * Used internally to create Operation objects
  *
  * @param string $name
  * @return object
  */
 protected function getOperation($name)
 {
     return GDImage_OperationFactory::get($name);
 }