Re: PHP
※ 引述《magicfx (Photoshop 畫油畫)》之銘言:
: <?
: header("content-type: image/jpeg");
: $image = imagecreate(200, 200);
: $red = imagecolorallocate ($image, 255 ,0 , 0);
: $blue = imagecolorallocate ($image, 0 ,0 , 255);
: imageline($image, 0, 0, 199, 199, $blue);
: imagefill($image, 0, 199, $blue);
: imagejpeg($image);
: ?>
<?
header("content-type:image/jpeg");
$image=imagecreate(200,200);
$blue=imagecolorallocate($image,0,0,255);
$green=imagecolorallocate($image,0,255,0);
$red=imagecolorallocate($image,255,0,0);
imageline($image,0,0,199,199, $red);
imagearc($image,99,99,180,180,0,270,$green);
imageline($image,70,0,20,199, $red);
$points=array(100,0,199,100,100,199,0,100);
imagefilledpolygon($image,$points,count($points)/2,$green);
imageline($image,100,0,100,199,$red);
imageline($image,199,100,0,100,$red);
imagejpeg($image);
?>
--
※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw)
◆ From: 140.112.7.59
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):