protected function DrawEllipse::execute in Image Effects 8
Same name in this branch
- 8 src/Plugin/ImageToolkit/Operation/gd/DrawEllipse.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\DrawEllipse::execute()
- 8 src/Plugin/ImageToolkit/Operation/imagemagick/DrawEllipse.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\DrawEllipse::execute()
Same name and namespace in other branches
- 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/DrawEllipse.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\DrawEllipse::execute()
- 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\imagemagickCode
protected function execute(array $arguments) {
$arg = '';
$arg .= '-fill ' . $this
->getToolkit()
->escapeShellArg($arguments['color']);
$this
->getToolkit()
->addArgument($arg . ' -draw ' . $this
->getToolkit()
->escapeShellArg("ellipse {$arguments['cx']},{$arguments['cy']} {$arguments['width']},{$arguments['height']} 0,360"));
return TRUE;
}