Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Pdf_Resource_Image_Png Class Reference

Public Member Functions

 __construct ($imageFileName)
 Object constructor.
 
 getPixelWidth ()
 Image width.
 
 getPixelHeight ()
 Image height.
 
 getProperties ()
 Image properties.
 
- Public Member Functions inherited from Zend_Pdf_Resource_Image
 __construct ()
 Object constructor.
 
 getPixelHeight ()
 get the height in pixels of the image
 
 getPixelWidth ()
 get the width in pixels of the image
 
 getProperties ()
 gets an associative array of information about an image
 
- 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.
 

Public Attributes

const PNG_COMPRESSION_DEFAULT_STRATEGY = 0
 
const PNG_COMPRESSION_FILTERED = 1
 
const PNG_COMPRESSION_HUFFMAN_ONLY = 2
 
const PNG_COMPRESSION_RLE = 3
 
const PNG_FILTER_NONE = 0
 
const PNG_FILTER_SUB = 1
 
const PNG_FILTER_UP = 2
 
const PNG_FILTER_AVERAGE = 3
 
const PNG_FILTER_PAETH = 4
 
const PNG_INTERLACING_DISABLED = 0
 
const PNG_INTERLACING_ENABLED = 1
 
const PNG_CHANNEL_GRAY = 0
 
const PNG_CHANNEL_RGB = 2
 
const PNG_CHANNEL_INDEXED = 3
 
const PNG_CHANNEL_GRAY_ALPHA = 4
 
const PNG_CHANNEL_RGB_ALPHA = 6
 

Protected Attributes

 $_width
 
 $_height
 
 $_imageProperties
 

Constructor & Destructor Documentation

__construct (   $imageFileName)

Object constructor.

Parameters
string$imageFileName
Exceptions
Zend_Pdf_Exception
Todo:

Add compression conversions to support compression strategys other than PNG_COMPRESSION_DEFAULT_STRATEGY.

Add pre-compression filtering.

Add interlaced image handling.

Add support for 16-bit images. Requires PDF version bump to 1.5 at least.

Add processing for all PNG chunks defined in the spec. gAMA etc.

Fix tRNS chunk support for Indexed Images to a SMask.

Member Function Documentation

getPixelHeight ( )

Image height.

getPixelWidth ( )

Image width.

getProperties ( )

Image properties.

Member Data Documentation

$_height
protected
$_imageProperties
protected
$_width
protected
const PNG_CHANNEL_GRAY = 0
const PNG_CHANNEL_GRAY_ALPHA = 4
const PNG_CHANNEL_INDEXED = 3
const PNG_CHANNEL_RGB = 2
const PNG_CHANNEL_RGB_ALPHA = 6
const PNG_COMPRESSION_DEFAULT_STRATEGY = 0
const PNG_COMPRESSION_FILTERED = 1
const PNG_COMPRESSION_HUFFMAN_ONLY = 2
const PNG_COMPRESSION_RLE = 3
const PNG_FILTER_AVERAGE = 3
const PNG_FILTER_NONE = 0
const PNG_FILTER_PAETH = 4
const PNG_FILTER_SUB = 1
const PNG_FILTER_UP = 2
const PNG_INTERLACING_DISABLED = 0
const PNG_INTERLACING_ENABLED = 1