RGB color implementation

This class encapsulates color behaviour.

Some colors interact with PDF document (create additional objects in a PDF), others don't do it. That is defined in a subclasses.

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

Object constructor

__construct(float $r, float $g, float $b) 

Parameters

$r

float

$g

float

$b

float

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

 Properties

 

Blue level.

$_b : \Zend_Pdf_Element_Numeric

Default

0.0 (zero concentration) - 1.0 (maximum concentration)

 

Green level.

$_g : \Zend_Pdf_Element_Numeric

Default

0.0 (zero concentration) - 1.0 (maximum concentration)

 

Red level.

$_r : \Zend_Pdf_Element_Numeric

Default

0.0 (zero concentration) - 1.0 (maximum concentration)