![]() |
Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Public Member Functions | |
| __construct (int $c, int $m, int $y, int $k) | |
| formatCMYK () | |
Static Public Member Functions | |
| static | parseCMYK (string $cmyk_str) |
Public Attributes | |
| $C | |
| $M | |
| $Y | |
| $K | |
Class for CMYK color. Null means CMYK is not used, default RGB color is in use.
| CMYKColor::__construct | ( | int | $c, |
| int | $m, | ||
| int | $y, | ||
| int | $k | ||
| ) |
Initializes a new instance of the
class from CMYK values. CMYK values are 0-100.
| $c | Cyan value [0, 100] |
| $m | Magenta value [0, 100] |
| $y | Yellow value [0, 100] |
| $k | Black value [0, 100] |
| CMYKColor::formatCMYK | ( | ) |
Format this CMYK object into a string "C_M_Y_K", multiplying each component by 100.
|
static |
Parse a CMYK string of the form "C_M_Y_K" into a CMYK object.
| string | $str |
| InvalidArgumentException |
| CMYKColor::$C |
| CMYKColor::$K |
| CMYKColor::$M |
| CMYKColor::$Y |