Esempio n. 1
0
 /**
  * @param \Imagine\Draw\DrawerInterface $drawer
  * @param array $commandOptions
  * @return \Imagine\Draw\DrawerInterface
  */
 protected function drawEllipse(\Imagine\Draw\DrawerInterface $drawer, array $commandOptions)
 {
     $center = $this->parsePoint($commandOptions['center']);
     $size = $this->parseBox($commandOptions['size']);
     $color = $this->parseColor($commandOptions['color']);
     $fill = isset($commandOptions['fill']) ? (bool) $commandOptions['fill'] : FALSE;
     return $drawer->ellipse($center, $size, $color, $fill);
 }