You are here

protected function Swirl::process in Imagick 8

File

src/Plugin/ImageToolkit/Operation/imagick/Swirl.php, line 34

Class

Swirl
Defines imagick swirl operation.

Namespace

Drupal\imagick\Plugin\ImageToolkit\Operation\imagick

Code

protected function process(Imagick $resource, array $arguments) {
  return $resource
    ->swirlImage($arguments['degrees']);
}