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