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