Definition at line 37 of file Cmyk.php.
◆ __construct()
__construct |
( |
|
$c, |
|
|
|
$m, |
|
|
|
$y, |
|
|
|
$k |
|
) |
| |
Object constructor
- Parameters
-
float | $c | |
float | $m | |
float | $y | |
float | $k | |
Definition at line 80 of file Cmyk.php.
82 if ($c < 0) { $c = 0; }
83 if ($c > 1) { $c = 1; }
85 if ($m < 0) { $m = 0; }
86 if ($m > 1) { $m = 1; }
88 if ($y < 0) { $y = 0; }
89 if ($y > 1) { $y = 1; }
91 if ($k < 0) { $k = 0; }
92 if ($k > 1) { $k = 1; }
◆ getComponents()
Get color components (color space dependent)
- Returns
- array
Definition at line 121 of file Cmyk.php.
123 return array($this->_c->value, $this->_m->value, $this->_y->value, $this->_k->value);
◆ instructions()
instructions |
( |
|
$stroking | ) |
|
Instructions, which can be directly inserted into content stream to switch color. Color set instructions differ for stroking and nonstroking operations.
- Parameters
-
- Returns
- string
Definition at line 108 of file Cmyk.php.
110 return $this->_c->toString() .
' ' 111 . $this->_m->toString() .
' ' 112 . $this->_y->toString() .
' ' 113 . $this->_k->toString() . ($stroking?
" K\n" :
" k\n");
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Color/Cmyk.php