Vignette.php in Imagick 8
File
src/Plugin/ImageToolkit/Operation/imagick/Vignette.php
View source
<?php
namespace Drupal\imagick\Plugin\ImageToolkit\Operation\imagick;
use Imagick;
class Vignette extends ImagickOperationBase {
protected function arguments() {
return [
'blackpoint' => [
'description' => 'The black point.',
],
'whitepoint' => [
'description' => 'The white point.',
],
'x' => [
'description' => 'The X offset of the ellipse.',
],
'y' => [
'description' => 'The Y offset of the ellipse.',
],
];
}
protected function process(Imagick $resource, array $arguments) {
return $resource
->vignetteImage($arguments['blackpoint'], $arguments['whitepoint'], $arguments['x'], $arguments['y']);
}
}
Classes
Name |
Description |
Vignette |
Defines imagick vignette operation. |