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

Public Member Functions

 __construct ($imageFileName)
 Object constructor.
 
 getPixelWidth ()
 Image width (defined in Zend_Pdf_Resource_Image_Interface)
 
 getPixelHeight ()
 Image height (defined in Zend_Pdf_Resource_Image_Interface)
 
 getProperties ()
 Image properties (defined in Zend_Pdf_Resource_Image_Interface)
 
- 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 TIFF_FIELD_TYPE_BYTE =1
 
const TIFF_FIELD_TYPE_ASCII =2
 
const TIFF_FIELD_TYPE_SHORT =3
 
const TIFF_FIELD_TYPE_LONG =4
 
const TIFF_FIELD_TYPE_RATIONAL =5
 
const TIFF_TAG_IMAGE_WIDTH =256
 
const TIFF_TAG_IMAGE_LENGTH =257
 
const TIFF_TAG_BITS_PER_SAMPLE =258
 
const TIFF_TAG_COMPRESSION =259
 
const TIFF_TAG_PHOTOMETRIC_INTERPRETATION =262
 
const TIFF_TAG_STRIP_OFFSETS =273
 
const TIFF_TAG_SAMPLES_PER_PIXEL =277
 
const TIFF_TAG_STRIP_BYTE_COUNTS =279
 
const TIFF_COMPRESSION_UNCOMPRESSED = 1
 
const TIFF_COMPRESSION_CCITT1D = 2
 
const TIFF_COMPRESSION_GROUP_3_FAX = 3
 
const TIFF_COMPRESSION_GROUP_4_FAX = 4
 
const TIFF_COMPRESSION_LZW = 5
 
const TIFF_COMPRESSION_JPEG = 6
 
const TIFF_COMPRESSION_FLATE = 8
 
const TIFF_COMPRESSION_FLATE_OBSOLETE_CODE = 32946
 
const TIFF_COMPRESSION_PACKBITS = 32773
 
const TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO =0
 
const TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO =1
 
const TIFF_PHOTOMETRIC_INTERPRETATION_RGB =2
 
const TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED =3
 
const TIFF_PHOTOMETRIC_INTERPRETATION_CMYK =5
 
const TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR =6
 
const TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB =8
 
const TIFF_ENDIAN_BIG =0
 
const TIFF_ENDIAN_LITTLE =1
 
const UNPACK_TYPE_BYTE =0
 
const UNPACK_TYPE_SHORT =1
 
const UNPACK_TYPE_LONG =2
 
const UNPACK_TYPE_RATIONAL =3
 

Protected Member Functions

 unpackBytes ($type, $bytes)
 Byte unpacking function.
 

Protected Attributes

 $_width
 
 $_height
 
 $_imageProperties
 
 $_endianType
 
 $_fileSize
 
 $_bitsPerSample
 
 $_compression
 
 $_filter
 
 $_colorCode
 
 $_whiteIsZero
 
 $_blackIsZero
 
 $_colorSpace
 
 $_imageDataOffset
 
 $_imageDataLength
 

Constructor & Destructor Documentation

__construct (   $imageFileName)

Object constructor.

Parameters
string$imageFileName
Exceptions
Zend_Pdf_Exception

Member Function Documentation

getPixelHeight ( )

Image height (defined in Zend_Pdf_Resource_Image_Interface)

getPixelWidth ( )

Image width (defined in Zend_Pdf_Resource_Image_Interface)

getProperties ( )

Image properties (defined in Zend_Pdf_Resource_Image_Interface)

unpackBytes (   $type,
  $bytes 
)
protected

Byte unpacking function.

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

Parameters
int$type
string$bytes
Exceptions
Zend_Pdf_Exception

Member Data Documentation

$_bitsPerSample
protected
$_blackIsZero
protected
$_colorCode
protected
$_colorSpace
protected
$_compression
protected
$_endianType
protected
$_fileSize
protected
$_filter
protected
$_height
protected
$_imageDataLength
protected
$_imageDataOffset
protected
$_imageProperties
protected
$_whiteIsZero
protected
$_width
protected
const TIFF_COMPRESSION_CCITT1D = 2
const TIFF_COMPRESSION_FLATE = 8
const TIFF_COMPRESSION_FLATE_OBSOLETE_CODE = 32946
const TIFF_COMPRESSION_GROUP_3_FAX = 3
const TIFF_COMPRESSION_GROUP_4_FAX = 4
const TIFF_COMPRESSION_JPEG = 6
const TIFF_COMPRESSION_LZW = 5
const TIFF_COMPRESSION_PACKBITS = 32773
const TIFF_COMPRESSION_UNCOMPRESSED = 1
const TIFF_ENDIAN_BIG =0
const TIFF_ENDIAN_LITTLE =1
const TIFF_FIELD_TYPE_ASCII =2
const TIFF_FIELD_TYPE_BYTE =1
const TIFF_FIELD_TYPE_LONG =4
const TIFF_FIELD_TYPE_RATIONAL =5
const TIFF_FIELD_TYPE_SHORT =3
const TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO =1
const TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB =8
const TIFF_PHOTOMETRIC_INTERPRETATION_CMYK =5
const TIFF_PHOTOMETRIC_INTERPRETATION_RGB =2
const TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED =3
const TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO =0
const TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR =6
const TIFF_TAG_BITS_PER_SAMPLE =258
const TIFF_TAG_COMPRESSION =259
const TIFF_TAG_IMAGE_LENGTH =257
const TIFF_TAG_IMAGE_WIDTH =256
const TIFF_TAG_PHOTOMETRIC_INTERPRETATION =262
const TIFF_TAG_SAMPLES_PER_PIXEL =277
const TIFF_TAG_STRIP_BYTE_COUNTS =279
const TIFF_TAG_STRIP_OFFSETS =273
const UNPACK_TYPE_BYTE =0
const UNPACK_TYPE_LONG =2
const UNPACK_TYPE_RATIONAL =3
const UNPACK_TYPE_SHORT =1