You are here

protected function DrawEllipse::execute in Image Effects 8.3

Same name in this branch
  1. 8.3 src/Plugin/ImageToolkit/Operation/gd/DrawEllipse.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\DrawEllipse::execute()
  2. 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/DrawEllipse.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\DrawEllipse::execute()
Same name and namespace in other branches
  1. 8 src/Plugin/ImageToolkit/Operation/imagemagick/DrawEllipse.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\DrawEllipse::execute()
  2. 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/DrawEllipse.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\DrawEllipse::execute()

File

src/Plugin/ImageToolkit/Operation/imagemagick/DrawEllipse.php, line 26

Class

DrawEllipse
Defines ImageMagick draw ellipse operation.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick

Code

protected function execute(array $arguments) {
  $arg = '';
  $arg .= '-fill ' . $this
    ->escapeArgument($arguments['color']);
  $this
    ->addArgument($arg . ' -draw ' . $this
    ->escapeArgument("ellipse {$arguments['cx']},{$arguments['cy']} {$arguments['width']},{$arguments['height']} 0,360"));
  return TRUE;
}