API Documentation

Pdf/Color/Html.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
version
$Id: Html.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Pdf_Color_Html

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Pdf_Color_Html

Extends from
Zend_Pdf_Color
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
Properties
$_color
Methods
__construct
instructions
getComponents
color
namedColor

Description

HTML color implementation

Factory class which vends Zend_Pdf_Color objects from typical HTML representations.

Properties

$_color

Zend_Pdf_Color $_color = ''

Color

Details

$_color
Zend_Pdf_Color
visibility
private
default
final
false
static
false

Methods

__construct

__construct( mixed $color ) :

Class constructor.

Arguments
$color
mixed
Details
visibility
public
final
false
static
false
throws

color

color( string $color ) : Zend_Pdf_Color

Creates a Zend_Pdf_Color object from the HTML representation.

Arguments
$color
string
May either be a hexidecimal number of the form #rrggbb or one of the 140 well-known names (black, white, blue, etc.)
Details
visibility
public
final
false
static
true

getComponents

getComponents( ) : array

Get color components (color space dependent)

Output
array
Details
visibility
public
final
false
static
false

instructions

instructions( boolean $stroking ) : string

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

Color set instructions differ for stroking and nonstroking operations.

Arguments
$stroking
boolean
Output
string
Details
visibility
public
final
false
static
false

namedColor

namedColor( string $color ) : Zend_Pdf_Color

Creates a Zend_Pdf_Color object from the named color.

Arguments
$color
string
One of the 140 well-known color names (black, white, blue, etc.)
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.