API Documentation

Pdf/Resource/Image/Png.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
version
$Id: Png.php 22655 2010-07-22 18:47:20Z mabe $
Classes
Zend_Pdf_Resource_Image_Png

Description

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.

Zend_Pdf_Resource_Image_Png

Extends from
Zend_Pdf_Resource_Image
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Pdf
Constants
PNG_COMPRESSION_DEFAULT_STRATEGY
PNG_COMPRESSION_FILTERED
PNG_COMPRESSION_HUFFMAN_ONLY
PNG_COMPRESSION_RLE
PNG_FILTER_NONE
PNG_FILTER_SUB
PNG_FILTER_UP
PNG_FILTER_AVERAGE
PNG_FILTER_PAETH
PNG_INTERLACING_DISABLED
PNG_INTERLACING_ENABLED
PNG_CHANNEL_GRAY
PNG_CHANNEL_RGB
PNG_CHANNEL_INDEXED
PNG_CHANNEL_GRAY_ALPHA
PNG_CHANNEL_RGB_ALPHA
Properties
$_width
$_height
$_imageProperties
Methods
__construct
getPixelWidth
getPixelHeight
getProperties

Description

PNG image

Constants

PNG_COMPRESSION_DEFAULT_STRATEGY

 PNG_COMPRESSION_DEFAULT_STRATEGY = '0'

Details

value
0

PNG_COMPRESSION_FILTERED

 PNG_COMPRESSION_FILTERED = '1'

Details

value
1

PNG_COMPRESSION_HUFFMAN_ONLY

 PNG_COMPRESSION_HUFFMAN_ONLY = '2'

Details

value
2

PNG_COMPRESSION_RLE

 PNG_COMPRESSION_RLE = '3'

Details

value
3

PNG_FILTER_NONE

 PNG_FILTER_NONE = '0'

Details

value
0

PNG_FILTER_SUB

 PNG_FILTER_SUB = '1'

Details

value
1

PNG_FILTER_UP

 PNG_FILTER_UP = '2'

Details

value
2

PNG_FILTER_AVERAGE

 PNG_FILTER_AVERAGE = '3'

Details

value
3

PNG_FILTER_PAETH

 PNG_FILTER_PAETH = '4'

Details

value
4

PNG_INTERLACING_DISABLED

 PNG_INTERLACING_DISABLED = '0'

Details

value
0

PNG_INTERLACING_ENABLED

 PNG_INTERLACING_ENABLED = '1'

Details

value
1

PNG_CHANNEL_GRAY

 PNG_CHANNEL_GRAY = '0'

Details

value
0

PNG_CHANNEL_RGB

 PNG_CHANNEL_RGB = '2'

Details

value
2

PNG_CHANNEL_INDEXED

 PNG_CHANNEL_INDEXED = '3'

Details

value
3

PNG_CHANNEL_GRAY_ALPHA

 PNG_CHANNEL_GRAY_ALPHA = '4'

Details

value
4

PNG_CHANNEL_RGB_ALPHA

 PNG_CHANNEL_RGB_ALPHA = '6'

Details

value
6

Properties

$_height

 $_height = ''

Details

visibility
protected
default
final
false
static
false

$_imageProperties

 $_imageProperties = ''

Details

visibility
protected
default
final
false
static
false

$_width

 $_width = ''

Details

visibility
protected
default
final
false
static
false

Methods

__construct

__construct( string $imageFileName ) :

Object constructor

Arguments
$imageFileName
string
Details
visibility
public
final
false
static
false
throws
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.

getPixelHeight

getPixelHeight( ) :

Image height

Details
visibility
public
final
false
static
false

getPixelWidth

getPixelWidth( ) :

Image width

Details
visibility
public
final
false
static
false

getProperties

getProperties( ) :

Image properties

Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.