protected function Mirror::process in Imagick 8
File
- src/
Plugin/ ImageToolkit/ Operation/ imagick/ Mirror.php, line 37
Class
- Mirror
- Defines imagick mirror operation.
Namespace
Drupal\imagick\Plugin\ImageToolkit\Operation\imagickCode
protected function process(Imagick $resource, array $arguments) {
$flipSuccess = $flopSuccess = TRUE;
if ($arguments['flip']) {
$flipSuccess = $resource
->flipImage();
}
if ($arguments['flop']) {
$flopSuccess = $resource
->flopImage();
}
return $flipSuccess && $flopSuccess;
}