Is there any 开发者_开发技巧way to convert a hex color (#fffff) into a small .GIF image on the fly with PHP?
....
<?php
// create the image
$im = imagecreatetruecolor(100, 100);
// fill the image with the color you want
imagefilledrectangle($im, 0, 0, 99, 99, 0xFFFFFF);
// set the headers and output the image
header('Content-Type: image/gif');
imagegif($im);
imagedestroy($im);
?>
http://www.php.net/manual/en/function.imagegif.php
精彩评论