|
eZ Publish
[4.2]
|
eZMath provide a simple math library for common math operations More...
Public Member Functions | |
| eZMath () | |
Static Public Member Functions | |
| static | normalizeColorArray ($array) |
| static | rgbToCMYK ($rgbArray) |
| static | rgbToCMYK2 ($r, $g, $b) |
eZMath provide a simple math library for common math operations
Definition at line 41 of file ezmath.php.
| eZMath::eZMath | ( | ) |
Constructor
Definition at line 46 of file ezmath.php.
| static eZMath::normalizeColorArray | ( | $ | array | ) | [static] |
Normalize RGB color array to 0..1 range
| array | to normalize |
Definition at line 59 of file ezmath.php.
Referenced by eZPDF\modify().
| static eZMath::rgbToCMYK | ( | $ | rgbArray | ) | [static] |
Convert RGB to CMYK, Normalized values, between 0 and 1
| rgbArray | RGB array |
Definition at line 77 of file ezmath.php.
Referenced by Cpdf\Cpdf(), Cpdf\o_shading(), and rgbToCMYK2().
| static eZMath::rgbToCMYK2 | ( | $ | r, |
| $ | g, | ||
| $ | b | ||
| ) | [static] |
Convert rgb to CMYK
| r | R |
| g | G |
| b | B |
Definition at line 109 of file ezmath.php.
Referenced by eZPDFTable\ezTable(), eZPDF\modify(), Cpdf\o_shading(), eZPDFTable\pushStack(), Cpdf\setColorRGB(), and Cpdf\setStrokeColorRGB().