Image_Tools
[ class tree: Image_Tools ] [ index: Image_Tools ] [ all elements ]

Source for file marquee.php

Documentation is available at marquee.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker */
  3. // $Id: marquee.php,v 1.1 2008/05/26 03:03:26 firman Exp $
  4.  
  5. /**
  6.  * Image_Tools
  7.  */
  8. require_once 'Image/Tools.php';
  9.  
  10. // creates an instance of Marquee tool object
  11. $marquee Image_Tools::factory('marquee');
  12. if (PEAR::isError($marquee)) {
  13.     echo $marquee->toString();
  14.     exit;
  15. }
  16.  
  17. // sets the options
  18. $marquee->set('image'dirname(__FILE__'/images/zebra.jpg');
  19. $marquee->set('sample'dirname(__FILE__'/images/3dgirl.jpg');
  20. $marquee->set('x'30);
  21. $marquee->set('y'30);
  22.  
  23. $marquee->setRectangleMarquee(1010150150);
  24.  
  25. // display the image result
  26. $err $marquee->display(IMAGETYPE_JPEG);
  27. if (PEAR::isError($err)) {
  28.     echo $err->toString();
  29.     exit;
  30. }

Documentation generated on Mon, 11 Mar 2019 15:22:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.