API Documentation

Pdf/Resource/Image/Tiff.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: Tiff.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Pdf_Resource_Image_Tiff

TIFF 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  TIFF_FIELD_TYPE_BYTE = '1'
Constant  TIFF_FIELD_TYPE_ASCII = '2'
Constant  TIFF_FIELD_TYPE_SHORT = '3'
Constant  TIFF_FIELD_TYPE_LONG = '4'
Constant  TIFF_FIELD_TYPE_RATIONAL = '5'
Constant  TIFF_TAG_IMAGE_WIDTH = '256'
Constant  TIFF_TAG_IMAGE_LENGTH = '257'
Constant  TIFF_TAG_BITS_PER_SAMPLE = '258'
Constant  TIFF_TAG_COMPRESSION = '259'
Constant  TIFF_TAG_PHOTOMETRIC_INTERPRETATION = '262'
Constant  TIFF_TAG_STRIP_OFFSETS = '273'
Constant  TIFF_TAG_SAMPLES_PER_PIXEL = '277'
Constant  TIFF_TAG_STRIP_BYTE_COUNTS = '279'
Constant  TIFF_COMPRESSION_UNCOMPRESSED = '1'
Constant  TIFF_COMPRESSION_CCITT1D = '2'
Constant  TIFF_COMPRESSION_GROUP_3_FAX = '3'
Constant  TIFF_COMPRESSION_GROUP_4_FAX = '4'
Constant  TIFF_COMPRESSION_LZW = '5'
Constant  TIFF_COMPRESSION_JPEG = '6'
Constant  TIFF_COMPRESSION_FLATE = '8'
Constant  TIFF_COMPRESSION_FLATE_OBSOLETE_CODE = '32946'
Constant  TIFF_COMPRESSION_PACKBITS = '32773'
Constant  TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO = '0'
Constant  TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO = '1'
Constant  TIFF_PHOTOMETRIC_INTERPRETATION_RGB = '2'
Constant  TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED = '3'
Constant  TIFF_PHOTOMETRIC_INTERPRETATION_CMYK = '5'
Constant  TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR = '6'
Constant  TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB = '8'
Constant  TIFF_ENDIAN_BIG = '0'
Constant  TIFF_ENDIAN_LITTLE = '1'
Constant  UNPACK_TYPE_BYTE = '0'
Constant  UNPACK_TYPE_SHORT = '1'
Constant  UNPACK_TYPE_LONG = '2'
Constant  UNPACK_TYPE_RATIONAL = '3'

Properties

Propertyprotected  $_bitsPerSample= ''
Details
Type
Propertyprotected  $_blackIsZero= ''
Details
Type
Propertyprotected  $_colorCode= ''
Details
Type
Propertyprotected  $_colorSpace= ''
Details
Type
Propertyprotected  $_compression= ''
Details
Type
Propertyprotected  $_endianType= ''
Details
Type
Propertyprotected  $_fileSize= ''
Details
Type
Propertyprotected  $_filter= ''
Details
Type
Propertyprotected  $_height= ''
Details
Type
Propertyprotected  $_imageDataLength= ''
Details
Type
Propertyprotected  $_imageDataOffset= ''
Details
Type
Propertyprotected  $_imageProperties= ''
Details
Type
Propertyprotected  $_whiteIsZero= ''
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
methodpublicgetPixelHeight( ) : integer

Image height (defined in Zend_Pdf_Resource_Image_Interface)

Returns
Type Description
integer
methodpublicgetPixelWidth( ) : integer

Image width (defined in Zend_Pdf_Resource_Image_Interface)

Returns
Type Description
integer
methodpublicgetProperties( ) : array

Image properties (defined in Zend_Pdf_Resource_Image_Interface)

Returns
Type Description
array
methodprotectedunpackBytes( int $type, string $bytes ) : void

Byte unpacking function

Makes it possible to unpack bytes in one statement for enhanced logic readability.

Parameters
Name Type Description
$type int
$bytes string
Throws
Exception Description
\Zend_Pdf_Exception
Documentation was generated by DocBlox 0.13.3.