Invert.php in Image Effects 8
File
src/Plugin/ImageToolkit/Operation/gd/Invert.php
View source
<?php
namespace Drupal\image_effects\Plugin\ImageToolkit\Operation\gd;
use Drupal\system\Plugin\ImageToolkit\Operation\gd\GDImageToolkitOperationBase;
class Invert extends GDImageToolkitOperationBase {
protected function arguments() {
return [];
}
protected function execute(array $arguments) {
return imagefilter($this
->getToolkit()
->getResource(), IMG_FILTER_NEGATE);
}
}
Classes
Name |
Description |
Invert |
Defines GD Invert operation. |