[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/gallery/data/ -> galleryresourceimagemetadatareader.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcebasemetadatareader.class.php" );
   4  
   5      /**
   6       * \ingroup Gallery
   7       * 
   8       * Retrieves information from images, regardless of the type of image.
   9       */
  10      class GalleryResourceImageMetadataReader extends GalleryResourceBaseMetadataReader
  11      {
  12          /**
  13           * constructor
  14           *
  15           * @param resource A GalleryResource object
  16           */
  17      	function GalleryResourceImageMetadataReader( $resource )
  18          {
  19              $this->GalleryResourceBaseMetadataReader( $resource );
  20          }
  21  
  22          /**
  23           * returns the height of the image
  24           *
  25           * @return the height of the image in pixels
  26           */
  27          function getHeight()
  28          {
  29              return $this->_metadata["video"]["resolution_y"];
  30          }
  31          
  32          /**
  33           * returns the width of the image
  34           *
  35           * @return the width of the image in pixels
  36           */
  37          function getWidth()
  38          {
  39              return $this->_metadata["video"]["resolution_x"];
  40          }
  41  
  42          /**
  43           * returns the exact format of the image
  44           *
  45           * @return a string representing the format of the image
  46           */
  47          function getFormat()
  48          {
  49              return $this->_metadata["video"]["dataformat"];
  50          }
  51  
  52          /**
  53           * @return the number of bits per sample of the image
  54           */
  55          function getBitsPerSample()
  56          {
  57              return $this->_metadata["video"]["bits_per_sample"];
  58          }
  59      }
  60  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics