[ PHPXref.com ] [ Generated: Sun Jul 20 20:54:51 2008 ] [ Vice Stats 1.0.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> vs_gdtest.php (source)

   1  <?
   2  $img=imagecreate(150, 50);
   3  $red=imagecolorallocate($img, 255,0,0);
   4  $black=imagecolorallocate($img, 0,0,0);
   5  
   6  switch ($_GET['test']) {
   7  case 1:
   8      imageline($img, 0, 25, 150, 25, $black);
   9      break;
  10  case 2:
  11      imagestring($img, 2, 3, 3, "Test 2...", $black);
  12      break;
  13  case 3:
  14      imagefttext($img, 12, 90,
  15          15, 47, $black,
  16          'ProggySmall.ttf', "Test 3\nTest 3\nTest 3"
  17      );
  18      break;
  19  }
  20  
  21  header("Content-type: image/png");
  22  imagepng($img);
  23  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]