langsunga saja yuk,!!!!
1. Membuat Garis
<?php
header("Content-type:image/jpeg");
$quality=100;
$gb= imagecreate(1366,667);//ukuran
background
$bg_color=
imagecolorallocate($gb,255,255,255);//warna background
$line_color=
imagecolorallocate($gb,0,0,0);//warna garis
$width= 1320;
$x_mulai=15;
$y_mulai=250;
$x_akhir= $width+$x_mulai;
imageline($gb,$x_mulai,$y_mulai,$x_akhir,$y_mulai,$line_color);//mengatur
panjang
imagejpeg($gb);//menampilkan gambar/garis
imagedestroy($gb);
?>
dan hasilnya seoerti di bawah ini
2. Membuat Lingkaran
<?php
header("Content-type:image/jpeg");
$bg= imagecreate(1366,667); //ukuran
background
imagecolorallocate($bg,255,255,255);//warna
backround
$line=
imagecolorallocate($bg,0,0,0);//warna lingkaran (garis lingkaran)
imageellipse($bg,650,350,500,500,$line);
imagejpeg($bg);
imagedestroy($bg);
?>
dan hasilnya sebagai berikut

Any feedback, questions or ideas are always welcome. In case you are posting Code ,then first escape it using Postify and then paste it in the comments
0 comments: