SetaPDF_Core_Image_Png Class representing an PNG image
File: /SetaPDF v2/Core/Image/Png.php
Class hierarchy
Summary
Constants
TYPE_GIF
Image type
TYPE_JPEG
Image type
TYPE_JPEG2000
Image type
TYPE_PNG
Image type
TYPE_TIFF
Image type
TYPE_UNKNOWN
Image type
Properties
$_height
protected integer SetaPDF_Core_Image::$_height
The pixel height
$_imageData
protected resource SetaPDF_Core_Image_Png::$_imageData
Image stream data
$_isInterlaced
protected bool SetaPDF_Core_Image_Png::$_isInterlaced
Defines whether the image is interlaced or not
$_width
protected integer SetaPDF_Core_Image::$_width
The pixel width
Static Methods
get()
Get an image by a reader.
Parameters
- $reader : SetaPDF_Core_Reader_ReaderInterface
The reader instance
Exceptions
Throws SetaPDF_Exception_NotImplemented If the image type is not supported (supported types: JPEG, PNG, JPEG2000).
getType()
Methods
__construct()
_extractAlphaChannel()
Extracts the alpha channel from the image data.
Parameters
- $decodeParameters : array
Exceptions
_process()
Processes the image data so all needed information is available.
Exceptions
Throws SetaPDF_Core_Image_Exception
toXObject()
public SetaPDF_Core_Image_Png::toXObject (
SetaPDF_Core_Document $document
): SetaPDF_Core_XObject_ImageConverts the PNG image to an external object.
Parameters
- $document : SetaPDF_Core_Document
Exceptions
Throws SetaPDF_Core_Filter_Exception
Throws SetaPDF_Core_Image_Exception
Throws SetaPDF_Exception_NotImplemented