You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.8 KiB

11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  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.
  14. *
  15. * @category Zend
  16. * @package Zend_Pdf
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /** Internally used classes */
  22. /** Zend_Pdf_Element_Name */
  23. // require_once 'Zend/Pdf/Element/Name.php';
  24. /** Zend_Pdf_Resource */
  25. // require_once 'Zend/Pdf/Resource.php';
  26. /**
  27. * Image abstraction.
  28. *
  29. * @package Zend_Pdf
  30. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @license http://framework.zend.com/license/new-bsd New BSD License
  32. */
  33. abstract class Zend_Pdf_Resource_Image extends Zend_Pdf_Resource
  34. {
  35. /**
  36. * Object constructor.
  37. */
  38. public function __construct()
  39. {
  40. parent::__construct('');
  41. $this->_resource->dictionary->Type = new Zend_Pdf_Element_Name('XObject');
  42. $this->_resource->dictionary->Subtype = new Zend_Pdf_Element_Name('Image');
  43. }
  44. /**
  45. * get the height in pixels of the image
  46. *
  47. * @return integer
  48. */
  49. abstract public function getPixelHeight();
  50. /**
  51. * get the width in pixels of the image
  52. *
  53. * @return integer
  54. */
  55. abstract public function getPixelWidth();
  56. /**
  57. * gets an associative array of information about an image
  58. *
  59. * @return array
  60. */
  61. abstract public function getProperties();
  62. }