Source for file image.php

Documentation is available at image.php

  1. <?php
  2.  
  3. require_once('../Graph.class.php');
  4. Graph::importObject('Image');
  5.  
  6. $graph new Graph(400,400);
  7.  
  8.  
  9. $graph->type "png";
  10. $graph->transparent=false;
  11. $graph->setBackground(2552550);
  12.  
  13. $image1 new Image('pezsgo.jpg')
  14. $image1->setX($graph->width 2,0);
  15. $image1->setY($graph->height 20);
  16.  
  17. $image1->cut(0,0,100,100);
  18.  
  19. $graph->add($image1);
  20.          
  21. $image2 new Image('pezsgo.jpg');
  22. $image2->cut(10,120,120,200);
  23. $image2->setX(30,0);
  24. $image2->setY(200,2);
  25.         
  26. $graph->add($image2);
  27.         
  28. $image3 new Image('pezsgo.jpg');
  29. $image3->cut(0,100,50,200);
  30. $image3->setX(30,0);
  31. $image3->setY(200,0);
  32. $image3->angle 90;
  33.         
  34. $graph->add($image3);
  35.         
  36. $graph->flush();
  37. ?>

Documentation generated on Tue, 09 Feb 2010 01:17:50 +0100 by phpDocumentor 1.4.1