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