Zend Framework  1.12
Public Member Functions | Static Public Member Functions | List of all members
Zend_Pdf_Color_Html Class Reference

Public Member Functions

 __construct ($color)
 Class constructor.
 
 instructions ($stroking)
 Instructions, which can be directly inserted into content stream to switch color.
 
 getComponents ()
 Get color components (color space dependent)
 
- Public Member Functions inherited from Zend_Pdf_Color
 instructions ($stroking)
 Instructions, which can be directly inserted into content stream to switch color.
 
 getComponents ()
 Get color components (color space dependent)
 

Static Public Member Functions

static color ($color)
 Creates a Zend_Pdf_Color object from the HTML representation.
 
static namedColor ($color)
 Creates a Zend_Pdf_Color object from the named color.
 

Constructor & Destructor Documentation

__construct (   $color)

Class constructor.

Parameters
mixed$color
Exceptions
Zend_Pdf_Exception

Member Function Documentation

static color (   $color)
static

Creates a Zend_Pdf_Color object from the HTML representation.

Parameters
string$colorMay 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
getComponents ( )

Get color components (color space dependent)

Returns
array
instructions (   $stroking)

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

Color set instructions differ for stroking and nonstroking operations.

Parameters
boolean$stroking
Returns
string
static namedColor (   $color)
static

Creates a Zend_Pdf_Color object from the named color.

Parameters
string$colorOne of the 140 well-known color names (black, white, blue, etc.)
Returns
Zend_Pdf_Color