HTML color implementation

Factory class which vends Zend_Pdf_Color objects from typical HTML representations.

category Zend
package Zend_Pdf
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Pdf_Color

 Methods

Class constructor.

__construct(mixed $color) 

Parameters

$color

mixed

Exceptions

\Zend_Pdf_Exception

Creates a Zend_Pdf_Color object from the HTML representation.

color(string $color) : \Zend_Pdf_Color
Static

Parameters

$color

string

May either be a hexidecimal number of the form

rrggbb or one of the 140 well-known names (black, white, blue, etc.)

Returns

\Zend_Pdf_Color

Get color components (color space dependent)

getComponents() : array
inherited_from \Zend_Pdf_Color::getComponents()

Returns

array

Get color components (color space dependent)

getComponents() : array
Inherited

Returns

array

Instructions, which can be directly inserted into content stream to switch color.

instructions(boolean $stroking) : string

Color set instructions differ for stroking and nonstroking operations.

inherited_from \Zend_Pdf_Color::instructions()

Parameters

$stroking

boolean

Returns

string

Instructions, which can be directly inserted into content stream to switch color.

instructions(boolean $stroking) : string
Inherited

Color set instructions differ for stroking and nonstroking operations.

Parameters

$stroking

boolean

Returns

string

Creates a Zend_Pdf_Color object from the named color.

namedColor(string $color) : \Zend_Pdf_Color
Static

Parameters

$color

string

One of the 140 well-known color names (black, white, blue, etc.)

Returns

\Zend_Pdf_Color

 Properties

 

Color

$_color : \Zend_Pdf_Color

Default