| 
<?php
 // See guitar.php for another usage
 
 require_once("pic2x.inc");
 
 // Using a GD resource
 $gd = imagecreate(50,50);
 imagecolorallocate($gd, 0,0,0);
 
 $img = new Pic2X($gd);
 echo $img->convert(); // return a string with the image to use
 $img->save('name.xpm'); // or save into a file - return false if file exists
 
 /*=================================================================================*/
 
 // Using a file
 $img = new Pic2X('php.gif');
 echo $img->convert(); // return a string with the image to use
 $img->save('php.xpm'); // or save into a file - return false if file exists
 ?>
 
 |