Skip to content

sx posteets tagged gdlib

4 years ago
  1. <?
  2.     $width = “120”;
  3.     $height = “30”;
  4.     $text = “welcome to my site”;
  5.     $pic = ImageCreate($width,$height);
  6.     $col1 = ImageColorAllocate($pic,0,0,0);
  7.     $col2 = ImageColorAllocate($pic,255,255,255);
  8.     ImageFilledRectangle($pic,0,0,500,30$col2);
  9.     ImageString($pic358$text$col1);
  10.     Header(“Expires: “.date(“r”,time()).“”);
  11.     Header(“Content-type: image/jpeg”);
  12.     ImageJPEG($pic);
  13.     ImageDestroy($pic);
  14.  ?>

“gdlib” related tags

sx’s tags

        c#