ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
PHP color class for TCPDF. More...
Static Public Member Functions | |
static | getSpotColor ($name, &$spotc) |
Return the Spot color array. More... | |
static | convertHTMLColorToDec ($hcolor, &$spotc, $defcol=array('R'=>128, 'G'=>128, 'B'=>128)) |
Returns an array (RGB or CMYK) from an html color name, or a six-digit (i.e. More... | |
static | getColorStringFromArray ($c) |
Convert a color array into a string representation. More... | |
static | _JScolor ($color) |
Convert color to javascript color. More... | |
Static Public Attributes | |
static | $webcolor |
Array of WEB safe colors static. More... | |
static | $jscolor = array ('transparent', 'black', 'white', 'red', 'green', 'blue', 'cyan', 'magenta', 'yellow', 'dkGray', 'gray', 'ltGray') |
Array of valid JavaScript color names static. More... | |
static | $spotcolor |
Array of Spot colors (C,M,Y,K,name) Color keys must be in lowercase and without spaces. More... | |
PHP color class for TCPDF.
Definition at line 48 of file tcpdf_colors.php.
|
static |
Convert color to javascript color.
$color | (string) color name or "#RRGGBB" |
Definition at line 446 of file tcpdf_colors.php.
References $jscolor.
Referenced by TCPDF\_addfield().
|
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.
$hcolor | (string) HTML color. |
$spotc | (array) Reference to an array of spot colors. |
$defcol | (array) Color to return in case of error. |
Definition at line 273 of file tcpdf_colors.php.
References $key, $m, $r, and array.
Referenced by TCPDF_STATIC\getAnnotOptFromJSProp(), TCPDF\getCSSBorderStyle(), TCPDF\getHtmlDomArray(), TCPDF\setSVGStyles(), and TCPDF\startSVGElementHandler().
|
static |
Convert a color array into a string representation.
$c | (array) Array of colors. |
Definition at line 415 of file tcpdf_colors.php.
|
static |
Return the Spot color array.
$name | (string) Name of the spot color. |
$spotc | (array) Reference to an array of spot colors. |
Definition at line 249 of file tcpdf_colors.php.
References $i, $name, and array.
Referenced by TCPDF\colorRegistrationBar(), and TCPDF\setSpotColor().
|
static |
Array of valid JavaScript color names static.
Definition at line 210 of file tcpdf_colors.php.
Referenced by _JScolor().
|
static |
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
Definition at line 219 of file tcpdf_colors.php.
|
static |
Array of WEB safe colors static.
Definition at line 54 of file tcpdf_colors.php.