eZPublish(LegacyStack)  5.1
eZMath Class Reference

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)
 

Detailed Description

eZMath provide a simple math library for common math operations

Member Function Documentation

eZMath::eZMath ( )

Constructor

static eZMath::normalizeColorArray (   $array)
static

Normalize RGB color array to 0..1 range

Parameters
arrayto normalize
Returns
normalized array

Referenced by eZPDF\modify().

static eZMath::rgbToCMYK (   $rgbArray)
static

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

Parameters
rgbArrayRGB array
Returns
CMYK array

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

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

Convert rgb to CMYK

Parameters
rR
gG
bB
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: