About PHP GD Arc


 

About PHP GD Arc

About PHP GD Arc:In this tutorial you will learn about PHP GD ARC Function.

About PHP GD Arc:In this tutorial you will learn about PHP GD ARC Function.
PHP GD arc Function

<?php
$img = imagecreate(200, 200);
$red = imagecolorallocate($img, 255, 0, 0);
$black = imagecolorallocate($img, 0, 0, 0); 
imagearc($img, 100, 100, 150, 150, 0, 360, $black); 
header("Content-type: image/png");
imagepng($img);
imagedestroy($img);
?>

After running the program you will get the following output

Ads