Plugins
[ class tree: Plugins ] [ index: Plugins ] [ all elements ]

Class: PrintTools

Source Location: /plugins/exportPdf/client/ExportPdfObjects.php

Class Overview


Provides static conversion tools.


Methods



Class Details

[line 29]
Provides static conversion tools.



[ Top ]


Class Methods


method switchColorToRgb [line 90]

array switchColorToRgb( mixed $color)

Converts passed color in RGB codes.



Tags:

return:  array of RGB codes
static:  


Parameters:

mixed   $color  

[ Top ]

method switchDistUnit [line 39]

float switchDistUnit( float $dist, string $from, string $to)

Converts the distance $dist from $from unit to $to unit.

  1. in = 72 pt = 2.54 cm = 25.4 mm




Tags:

return:  converted distance
static:  


Parameters:

float   $dist   distance to convert
string   $from   initial unit: in, pt, cm, mm
string   $to   final unit

[ Top ]

method switchHexColorToRgb [line 78]

array switchHexColorToRgb( string $color)

Converts #xxyyzz hexadecimal color codes into RGB.



Tags:

return:  array of RGB codes
static:  


Parameters:

string   $color   hexadecimal color code

[ Top ]


Documentation generated on Wed, 6 Apr 2005 12:06:38 +0200 by phpDocumentor 1.3.0RC3