Source for file example_01.php

Documentation is available at example_01.php

  1. <?php
  2. /**
  3. * Convert Example #01
  4. *
  5. * This example shows how the convert works without explicitly declaring it but
  6. * only using the extension of the filename of the "result" image (result_01.gif)
  7. *
  8. * @filesource
  9. * @package Asido.Examples
  10. * @subpackage Asido.Examples.Convert
  11. */
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14.  
  15. /**
  16. * Include the main Asido class
  17. */
  18. include('./../../class.asido.php');
  19.  
  20. /**
  21. * Set the correct driver: this depends on your local environment
  22. */
  23. asido::driver('gd');
  24.  
  25. /**
  26. * Create an Asido_Image object and provide the name of the source
  27. * image, and the name with which you want to save the file
  28. */
  29. $i1 = asido::image('example.png', 'result_01.gif');
  30.  
  31. /**
  32. * Save the result
  33. */
  34. $i1->save(ASIDO_OVERWRITE_ENABLED);
  35.  
  36. /////////////////////////////////////////////////////////////////////////////
  37.  
  38. ?>

Documentation generated on Mon, 09 Apr 2007 23:57:09 +0300 by phpDocumentor 1.3.0RC4