- header: documentation ( source)
<?php
$img = @ImageCreate (400, 400);
$color = ImageColorAllocate ($img, 233, 0, 0);
$blue = imagecolorallocate($img, 0, 0, 255);
imagearc($img, '100', '100', '50', '50', '20', '60', $blue);
header( "Content-type: image/png" );
imagepng($img);
imagedestroy($img);
?>