Pdf/Resource/Image/Png.php

Show: PublicProtectedPrivateinherited
Table of Contents
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 [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id$  

\Zend_Pdf_Resource_Image_Png

Package: Zend_Pdf
PNG image
Parent(s)
\Zend_Pdf_Resource_Image < \Zend_Pdf_Resource
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

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

Properties

>VPropertyprotected$_height
Details
Type
n/a
>VPropertyprotected$_imageProperties
Details
Type
n/a
>VPropertyprotected$_width
Details
Type
n/a

Methods

methodpublic__construct(string $imageFileName) : void

Object constructor

Parameters
NameTypeDescription
$imageFileNamestring
Throws
ExceptionDescription
\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() : void

Image height

methodpublicgetPixelWidth() : void

Image width

methodpublicgetProperties() : void

Image properties

Documentation was generated by phpDocumentor 2.2.0 .