API Documentation

Pdf/Resource/Image/Png.php

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.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Pdf  
version
$Id: Png.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Pdf_Resource_Image_Png

PNG image

Extends from
\Zend_Pdf_Resource_Image
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Pdf  

Constants

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

Properties

Propertyprotected  $_height= ''
Details
Type
Propertyprotected  $_imageProperties= ''
Details
Type
Propertyprotected  $_width= ''
Details
Type

Methods

methodpublic__clone( ) : void

Clone page, extract it and dependent objects from the current document, so it can be used within other docs.

Inherited from: \Zend_Pdf_Resource::__clone()
methodpublic__construct( string $imageFileName ) : void

Object constructor

If resource is not a Zend_Pdf_Element object, then stream object with specified value is generated.

Parameters
Name Type Description
$imageFileName string
Throws
Exception Description
\Zend_Pdf_Exception
Details
todo
Add compression conversions to support compression strategys other than PNG_COMPRESSION_DEFAULT_STRATEGY.  
todo
Add pre-compression filtering.  
todo
Add interlaced image handling.  
todo
Add support for 16-bit images. Requires PDF version bump to 1.5 at least.  
todo
Add processing for all PNG chunks defined in the spec. gAMA etc.  
todo
Fix tRNS chunk support for Indexed Images to a SMask.  
methodpublicgetPixelHeight( ) : integer

Image height

Returns
Type Description
integer
methodpublicgetPixelWidth( ) : integer

Image width

Returns
Type Description
integer
methodpublicgetProperties( ) : array

Image properties

Returns
Type Description
array
Documentation was generated by DocBlox 0.13.3.