You are here

protected function Vignette::process in Imagick 8

File

src/Plugin/ImageToolkit/Operation/imagick/Vignette.php, line 43

Class

Vignette
Defines imagick vignette operation.

Namespace

Drupal\imagick\Plugin\ImageToolkit\Operation\imagick

Code

protected function process(Imagick $resource, array $arguments) {
  return $resource
    ->vignetteImage($arguments['blackpoint'], $arguments['whitepoint'], $arguments['x'], $arguments['y']);
}