trait DrawLineTrait in Image Effects 8.3
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/Operation/DrawLineTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\DrawLineTrait
- 8.2 src/Plugin/ImageToolkit/Operation/DrawLineTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\DrawLineTrait
Base trait for image_effects DrawLine operations.
Hierarchy
- trait \Drupal\image_effects\Plugin\ImageToolkit\Operation\DrawLineTrait
1 file declares its use of DrawLineTrait
- DrawLine.php in src/
Plugin/ ImageToolkit/ Operation/ gd/ DrawLine.php
File
- src/
Plugin/ ImageToolkit/ Operation/ DrawLineTrait.php, line 8
Namespace
Drupal\image_effects\Plugin\ImageToolkit\OperationView source
trait DrawLineTrait {
/**
* {@inheritdoc}
*/
protected function arguments() {
return [
'x1' => [
'description' => 'x-coordinate for first point.',
],
'y1' => [
'description' => 'y-coordinate for first point.',
],
'x2' => [
'description' => 'x-coordinate for second point.',
],
'y2' => [
'description' => 'y-coordinate for second point.',
],
'color' => [
'description' => 'The line color, in RGBA format.',
],
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrawLineTrait:: |
protected | function |