7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Image.php 16541 2009-07-07 06:59:03Z bkarwin $
23 /** Zend_Pdf_Element_Object */
24 require_once 'Zend/Pdf/Element/Object.php';
26 /** Zend_Pdf_Element_Dictionary */
27 require_once 'Zend/Pdf/Element/Dictionary.php';
29 /** Zend_Pdf_Element_Name */
30 require_once 'Zend/Pdf/Element/Name.php';
32 /** Zend_Pdf_Resource */
33 require_once 'Zend/Pdf/Resource.php';
39 * Class is named not in accordance to the name convention.
40 * It's "end-user" class, but its ancestor is not.
41 * Thus part of the common class name is removed.
44 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
45 * @license http://framework.zend.com/license/new-bsd New BSD License
47 abstract class Zend_Pdf_Resource_Image
extends Zend_Pdf_Resource
52 public function __construct()
54 parent
::__construct('');
56 $this->_resource
->dictionary
->Type
= new Zend_Pdf_Element_Name('XObject');
57 $this->_resource
->dictionary
->Subtype
= new Zend_Pdf_Element_Name('Image');
60 * get the height in pixels of the image
64 abstract public function getPixelHeight();
67 * get the width in pixels of the image
71 abstract public function getPixelWidth();
74 * gets an associative array of information about an image
78 abstract public function getProperties();