Edge.php in Imagick 8
File
src/Plugin/ImageToolkit/Operation/imagick/Edge.php
View source
<?php
namespace Drupal\imagick\Plugin\ImageToolkit\Operation\imagick;
use Imagick;
class Edge extends ImagickOperationBase {
protected function arguments() {
return [
'radius' => [
'description' => 'The radius of the edge operation.',
],
];
}
protected function process(Imagick $resource, array $arguments) {
return $resource
->edgeImage($arguments['radius']);
}
}
Classes
Name |
Description |
Edge |
Defines imagick edge operation. |