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

Public Member Functions

 __construct (Zend_Pdf_Element_Object $extGStateObject=null)
 Object constructor.
 
 setAlpha ($alpha, $mode= 'Normal')
 Set the transparancy.
 
- Public Member Functions inherited from Zend_Pdf_Resource
 __construct ($resource)
 Object constructor.
 
 __clone ()
 Clone page, extract it and dependent objects from the current document, so it can be used within other docs.
 
 cloneResource ($factory, &$processed)
 Clone resource, extract it and dependent objects from the current document, so it can be used within other docs.
 
 getResource ()
 Get resource.
 
 getFactory ()
 Get factory.
 

Additional Inherited Members

- Protected Attributes inherited from Zend_Pdf_Resource
 $_objectFactory
 
 $_resource
 

Constructor & Destructor Documentation

__construct ( Zend_Pdf_Element_Object  $extGStateObject = null)

Object constructor.

Parameters
Zend_Pdf_Element_Object$extGStateObject
Exceptions
Zend_Pdf_Exception

Member Function Documentation

setAlpha (   $alpha,
  $mode = 'Normal' 
)

Set the transparancy.

$alpha == 0 - transparent $alpha == 1 - opaque

Transparency modes, supported by PDF: Normal (default), Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion

Parameters
float$alpha
string$mode
Exceptions
Zend_Pdf_Exception
Returns
Zend_Pdf_Canvas_Interface