0) { $TextWidth = strlen($Num[$i])*imagefontwidth($font); $TextHeight = imagefontheight($font); imagefilledrectangle ($im, $x[$i]-$TextWidth/2-1, $y[$i]-$TextHeight/2, $x[$i]+$TextWidth/2, $y[$i]+$TextHeight/2, $white ); imagestring($im, $font, $x[$i]-$TextWidth/2, $y[$i]-$TextHeight/2, $Num[$i], $tc); } } imagepng($im); imagedestroy($im); ?>