Rabu, 06 Januari 2010

PHP : GARIS

header("Content-Type:image/jpeg");
$background=@imagecreate(100,100);
$kuning=imagecolorallocate($background,250,250,300);
$hitam=imagecolorallocate($background,0,0,0);
imageline($background,20,20,80,80,$hitam);
imageJPEG($background);
imagedestroy($background);
?>

Tidak ada komentar: