classTCPDF__COLORS

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Static Public Member Functions

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

Static Public Attributes

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

Detailed Description

PHP color class for TCPDF

Member Function Documentation

static TCPDF_COLORS::_JScolor (   $color)
static

Convert color to javascript color.

Parameters
$color(string) color name or “#RRGGBB”
Since
2.1.002 (2008-02-12) static

static TCPDF_COLORS::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.

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

static TCPDF_COLORS::getColorStringFromArray (   $c)
static

Convert a color array into a string representation.

Parameters
$c(array) Array of colors.
Returns
(string) The color array representation.
Since
5.9.137 (2011-12-01) static

static TCPDF_COLORS::getSpotColor (   $name,
$spotc 
)
static

Return the Spot color array.

Parameters
$name(string) Name of the spot color.
$spotc(array) Reference to an array of spot colors.
Returns
(array) Spot color array or false if not defined.
Since
5.9.125 (2011-10-03) static

Member Data Documentation

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

Array of valid JavaScript color names static

TCPDF_COLORS::$spotcolor
static
Initial value:
= 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

TCPDF_COLORS::$webcolor
static

Array of WEB safe colors static


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

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy