FV.Zone Project Code

PHP 图形处理函数库

使用本功能需要在编译 PHP 前先安装 GD library。

01.    Header ( "Content-type: image/gif" );
02.$im = imagecreate ( 400 , 30 );
03.$black = ImageColorAllocate ( $im , 0 , 0 , 0 );
04.$white = ImageColorAllocate ( $im , 255 , 255 , 255 );
05.imageline ( $im , 1 , 1 , 350 , 25 , $black );
06.imagearc ( $im , 200 , 15 , 20 , 20 , 35 , 190 , $white );
07.imagestring ( $im , 5 , 4 , 10 , "Graph TEST!!" , $white );
08.ImageGif ( $im );
09.ImageDestroy ( $im );
10.?>

Read More »