Using Custom Brushes
<?php
    define
("WIDTH"450);
    
define("HEIGHT"450);
    
define("B_WIDTH"20);
    
define("B_HEIGHT",20);

    
$img imagecreate(WIDTHHEIGHT);
    
$background $white imagecolorallocate($img0xFF0xFF0xFF);
    
$black imagecolorallocate($img000);

    
$brush imagecreate(B_WIDTHB_HEIGHT);
    
$b_bkgr $b_white imagecolorallocate($brush0xFF0xFF0xFF);
    
$b_black imagecolorallocate($brush000);
    
imagecolortransparent($brush$b_bkgr);
    
imageellipse($brushB_WIDTH/2B_HEIGHT/2B_WIDTH/2B_HEIGHT/2$black);

    
imagerectangle($img00WIDTH-1HEIGHT-1$black);
    
    
imagesetbrush($img$brush);
    
    
imageline($img0HEIGHT-1WIDTH-10IMG_COLOR_BRUSHED);
    
imageellipse($imgWIDTH/2HEIGHT/2WIDTH/2HEIGHT/2IMG_COLOR_BRUSHED);

    
header("Content-Type: image/png");
    
imagepng($img);      
?>