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