[ 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/resizers/ -> gallerynullresizer.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/gallery/resizers/galleryabstractresizer.class.php" );
   4  
   5      /**
   6       * \ingroup Gallery_resizer
   7       *
   8       * This class is a thumbnail generator that does not generate thumbnails :) The purpose
   9       * of it (it has to have one, right? :)) is that if none of the other methods are
  10       * available (gd, imagemagick) at least we can "simulate" thumbnails by using the
  11       * with and height attributes of the img tag. In order to do that, this class
  12       * will not calculate the reduced image but simply return it as it... Well, at least it'll
  13       * be the fastest thumbnail method around ;)
  14       */
  15      class GalleryNullResizer extends GalleryAbstractResizer 
  16      {
  17  
  18          /**
  19           * Constructor.
  20           * @see GalleryAbstractResizer
  21           */
  22          function GalleryNullResizer( $image, $outputMethod )
  23          {
  24              $this->GalleryAbstractResizer( $image, $outputMethod );
  25          }
  26  
  27          /**
  28           * @see GalleryResizer::generate()
  29           */
  30          function generate( $outFile, $width, $height )
  31          {
  32              return $this->_image;
  33          }
  34      }
  35  ?>


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