TCPDF_COLORS Klassenreferenz

Öffentliche, statische Methoden

static getSpotColor ($name, &$spotc)
 
static convertHTMLColorToDec ($hcolor, &$spotc, $defcol=array('R'=>128,'G'=>128,'B'=>128))
 
static getColorStringFromArray ($c)
 
static _JScolor ($color)
 

Statische öffentliche Attribute

static $webcolor
 
static $jscolor = array ('transparent', 'black', 'white', 'red', 'green', 'blue', 'cyan', 'magenta', 'yellow', 'dkGray', 'gray', 'ltGray')
 
static $spotcolor
 

Ausführliche Beschreibung

PHP color class for TCPDF

Definiert in Zeile 48 der Datei tcpdf_colors.php.

Dokumentation der Elementfunktionen

static _JScolor (   $color)
static

Convert color to javascript color.

Parameter
$color(string) color name or "#RRGGBB"
Seit
2.1.002 (2008-02-12) static

Definiert in Zeile 446 der Datei tcpdf_colors.php.

Benutzt $jscolor.

Wird benutzt von TCPDF\_addfield().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static convertHTMLColorToDec (   $hcolor,
$spotc,
  $defcol = array('R'=>128,'G'=>128,'B'=>128) 
)
static

Returns an array (RGB or CMYK) from an html color name, or a six-digit (i.e. #3FE5AA), or three-digit (i.e. #7FF) hexadecimal color, or a javascript color array, or javascript color name.

Parameter
$hcolor(string) HTML color.
$spotc(array) Reference to an array of spot colors.
$defcol(array) Color to return in case of error.
Rückgabe
array RGB or CMYK color, or false in case of error. static

Definiert in Zeile 273 der Datei tcpdf_colors.php.

Wird benutzt von TCPDF_STATIC\getAnnotOptFromJSProp(), TCPDF\getCSSBorderStyle(), TCPDF\getHtmlDomArray(), TCPDF\setSVGStyles() und TCPDF\startSVGElementHandler().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static getColorStringFromArray (   $c)
static

Convert a color array into a string representation.

Parameter
$c(array) Array of colors.
Rückgabe
(string) The color array representation.
Seit
5.9.137 (2011-12-01) static

Definiert in Zeile 415 der Datei tcpdf_colors.php.

static getSpotColor (   $name,
$spotc 
)
static

Return the Spot color array.

Parameter
$name(string) Name of the spot color.
$spotc(array) Reference to an array of spot colors.
Rückgabe
(array) Spot color array or false if not defined.
Seit
5.9.125 (2011-10-03) static

Definiert in Zeile 249 der Datei tcpdf_colors.php.

Wird benutzt von TCPDF\colorRegistrationBar() und TCPDF\setSpotColor().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

Dokumentation der Datenelemente

$jscolor = array ('transparent', 'black', 'white', 'red', 'green', 'blue', 'cyan', 'magenta', 'yellow', 'dkGray', 'gray', 'ltGray')
static

Array of valid JavaScript color names static

Definiert in Zeile 210 der Datei tcpdf_colors.php.

Wird benutzt von _JScolor().

$spotcolor
static
Initialisierung:
= array (
'none' => array( 0, 0, 0, 0, 'None'),
'all' => array(100, 100, 100, 100, 'All'),
'cyan' => array(100, 0, 0, 0, 'Cyan'),
'magenta' => array( 0, 100, 0, 0, 'Magenta'),
'yellow' => array( 0, 0, 100, 0, 'Yellow'),
'key' => array( 0, 0, 0, 100, 'Key'),
'white' => array( 0, 0, 0, 0, 'White'),
'black' => array( 0, 0, 0, 100, 'Black'),
'red' => array( 0, 100, 100, 0, 'Red'),
'green' => array(100, 0, 100, 0, 'Green'),
'blue' => array(100, 100, 0, 0, 'Blue'),
)

Array of Spot colors (C,M,Y,K,name) Color keys must be in lowercase and without spaces. As long as no open standard for spot colours exists, you have to buy a colour book by one of the colour manufacturers and insert the values and names of spot colours directly. Common industry standard spot colors are: ANPA-COLOR, DIC, FOCOLTONE, GCMI, HKS, PANTONE, TOYO, TRUMATCH. static

Definiert in Zeile 219 der Datei tcpdf_colors.php.

$webcolor
static

Array of WEB safe colors static

Definiert in Zeile 54 der Datei tcpdf_colors.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.