eZPublish  3.8
eZMath Class Reference

eZMath provide a simple math library for common math operations More...

Public Member Functions

 eZMath ()
 

Static Public Member Functions

normalizeColorArray (&$array)
 
 rgbToCMYK ($rgbArray)
 
 rgbToCMYK2 ($r, $g, $b)
 

Detailed Description

eZMath provide a simple math library for common math operations

Member Function Documentation

eZMath::eZMath ( )

Constructor

& eZMath::normalizeColorArray ( $array)
static

Normalize RGB color array to 0..1 range

Parameters
arrayto normalize (changes values in array)
Returns
normalized array

Referenced by eZPDF\modify().

eZMath::rgbToCMYK (   $rgbArray)
static

Convert RGB to CMYK, Normalized values, between 0 and 1

Parameters
RGBarray
Returns
CMYK array

Referenced by Cpdf\Cpdf(), Cpdf\o_shading(), and rgbToCMYK2().

eZMath::rgbToCMYK2 (   $r,
  $g,
  $b 
)
static

Convert rgb to CMYK

Parameters
R
B
G
Returns
CMYK return array

Referenced by eZPDFTable\ezTable(), eZPDF\modify(), Cpdf\o_shading(), eZPDFTable\pushStack(), Cpdf\setColorRGB(), and Cpdf\setStrokeColorRGB().


The documentation for this class was generated from the following file: