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

Public Member Functions

 getWidth ()
 
 getHeight ()
 
 getBitDepth ()
 
 getColorSpace ()
 
 getCompressionStrategy ()
 
 getPaethFilter ()
 
 getInterlacingMode ()
 
 getRawImageData ()
 
 getRawPaletteData ()
 
 getRawTransparencyData ()
 
 screen ()
 Verifies that the image file is in the expected format.
 
 parse ()
 Reads and parses the image data from the file on disk.
 
- Public Member Functions inherited from Zend_Pdf_FileParser_Image
 __construct (Zend_Pdf_FileParserDataSource $dataSource)
 Object constructor.
 
- Public Member Functions inherited from Zend_Pdf_FileParser
 screen ()
 Performs a cursory check to verify that the binary file is in the expected format.
 
 parse ()
 Reads and parses the complete binary file.
 
 __construct (Zend_Pdf_FileParserDataSource $dataSource)
 Object constructor.
 
 __destruct ()
 Object destructor.
 
 isScreened ()
 Returns true if the file has passed a cursory validation check.
 
 isParsed ()
 Returns true if the file has been successfully parsed.
 
 getDataSource ()
 Returns the data source object representing the file being parsed.
 
 moveToOffset ($offset)
 Convenience wrapper for the data source object's moveToOffset() method.
 
 getOffset ()
 
 getSize ()
 
 readBytes ($byteCount)
 Convenience wrapper for the data source object's readBytes() method.
 
 skipBytes ($byteCount)
 Convenience wrapper for the data source object's skipBytes() method.
 
 readInt ($size, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN)
 Reads the signed integer value from the binary file at the current byte offset.
 
 readUInt ($size, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN)
 Reads the unsigned integer value from the binary file at the current byte offset.
 
 isBitSet ($bit, $bitField)
 Returns true if the specified bit is set in the integer bitfield.
 
 readFixed ($mantissaBits, $fractionBits, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN)
 Reads the signed fixed-point number from the binary file at the current byte offset.
 
 readStringUTF16 ($byteCount, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN, $characterSet= '')
 Reads the Unicode UTF-16-encoded string from the binary file at the current byte offset.
 
 readStringMacRoman ($byteCount, $characterSet= '')
 Reads the Mac Roman-encoded string from the binary file at the current byte offset.
 
 readStringPascal ($characterSet= '', $lengthBytes=1)
 Reads the Pascal string from the binary file at the current byte offset.
 

Protected Member Functions

 _parseSignature ()
 
 _checkSignature ()
 
 _parseChunks ()
 
 _parseIHDRChunk ()
 
 _parseIDATChunk ($chunkOffset, $chunkLength)
 
 _parsePLTEChunk ($chunkOffset, $chunkLength)
 
 _parseTRNSChunk ($chunkOffset, $chunkLength)
 

Protected Attributes

 $_isPNG
 
 $_width
 
 $_height
 
 $_bits
 
 $_color
 
 $_compression
 
 $_preFilter
 
 $_interlacing
 
 $_imageData
 
 $_paletteData
 
 $_transparencyData
 
- Protected Attributes inherited from Zend_Pdf_FileParser_Image
 $imageType
 
- Protected Attributes inherited from Zend_Pdf_FileParser
 $_isScreened = false
 
 $_isParsed = false
 
 $_dataSource = null
 

Additional Inherited Members

- Public Attributes inherited from Zend_Pdf_FileParser
const BYTE_ORDER_LITTLE_ENDIAN = 0
 Little-endian byte order (0x04 0x03 0x02 0x01).
 
const BYTE_ORDER_BIG_ENDIAN = 1
 Big-endian byte order (0x01 0x02 0x03 0x04).
 

Member Function Documentation

_checkSignature ( )
protected
_parseChunks ( )
protected
_parseIDATChunk (   $chunkOffset,
  $chunkLength 
)
protected
_parseIHDRChunk ( )
protected
_parsePLTEChunk (   $chunkOffset,
  $chunkLength 
)
protected
_parseSignature ( )
protected
_parseTRNSChunk (   $chunkOffset,
  $chunkLength 
)
protected
getBitDepth ( )
getColorSpace ( )
getCompressionStrategy ( )
getHeight ( )
getInterlacingMode ( )
getPaethFilter ( )
getRawImageData ( )
getRawPaletteData ( )
getRawTransparencyData ( )
getWidth ( )
parse ( )

Reads and parses the image data from the file on disk.

Exceptions
Zend_Pdf_Exception
screen ( )

Verifies that the image file is in the expected format.

Exceptions
Zend_Pdf_Exception

Member Data Documentation

$_bits
protected
$_color
protected
$_compression
protected
$_height
protected
$_imageData
protected
$_interlacing
protected
$_isPNG
protected
$_paletteData
protected
$_preFilter
protected
$_transparencyData
protected
$_width
protected