File indexing completed on 2025-01-19 05:21:23
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Pdf 0017 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0018 * @license http://framework.zend.com/license/new-bsd New BSD License 0019 * @version $Id$ 0020 */ 0021 0022 0023 /** Internally used classes */ 0024 0025 /** Zend_Pdf_Element_Name */ 0026 // require_once 'Zend/Pdf/Element/Name.php'; 0027 0028 0029 /** Zend_Pdf_Resource */ 0030 // require_once 'Zend/Pdf/Resource.php'; 0031 0032 0033 /** 0034 * Image abstraction. 0035 * 0036 * @package Zend_Pdf 0037 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0038 * @license http://framework.zend.com/license/new-bsd New BSD License 0039 */ 0040 abstract class Zend_Pdf_Resource_Image extends Zend_Pdf_Resource 0041 { 0042 /** 0043 * Object constructor. 0044 */ 0045 public function __construct() 0046 { 0047 parent::__construct(''); 0048 0049 $this->_resource->dictionary->Type = new Zend_Pdf_Element_Name('XObject'); 0050 $this->_resource->dictionary->Subtype = new Zend_Pdf_Element_Name('Image'); 0051 } 0052 /** 0053 * get the height in pixels of the image 0054 * 0055 * @return integer 0056 */ 0057 abstract public function getPixelHeight(); 0058 0059 /** 0060 * get the width in pixels of the image 0061 * 0062 * @return integer 0063 */ 0064 abstract public function getPixelWidth(); 0065 0066 /** 0067 * gets an associative array of information about an image 0068 * 0069 * @return array 0070 */ 0071 abstract public function getProperties(); 0072 } 0073