class Contrast in Image Effects 8.3
Same name in this branch
- 8.3 src/Plugin/ImageToolkit/Operation/gd/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\Contrast
- 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Contrast
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/Operation/imagemagick/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Contrast
- 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/Contrast.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Contrast
Defines ImageMagick Contrast operation.
Plugin annotation
@ImageToolkitOperation(
id = "image_effects_imagemagick_contrast",
toolkit = "imagemagick",
operation = "contrast",
label = @Translation("Contrast"),
description = @Translation("Adjust image contrast.")
)
Hierarchy
- class \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\Contrast extends \Drupal\imagemagick\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickImageToolkitOperationBase uses ContrastTrait
Expanded class hierarchy of Contrast
1 string reference to 'Contrast'
- ContrastImageEffect::buildConfigurationForm in src/
Plugin/ ImageEffect/ ContrastImageEffect.php - Form constructor.
File
- src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ Contrast.php, line 19
Namespace
Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagickView source
class Contrast extends ImagemagickImageToolkitOperationBase {
use ContrastTrait;
/**
* {@inheritdoc}
*/
protected function execute(array $arguments) {
if ($arguments['level']) {
$this
->addArgument('-brightness-contrast ' . $this
->escapeArgument('0x' . $arguments['level']));
}
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Contrast:: |
protected | function | ||
ContrastTrait:: |
protected | function | ||
ContrastTrait:: |
protected | function |