gdlib - imageantialias
HejJeg har et problem med gdlib under php
Jeg får antialiasing uanset hvad jeg gör.
Det lille testscript her nedenunder skulle
lave en sort square 200*200.
I stedet får jeg en 202*202 med antialiasing.
Nogle som har en forklaring?
<?
header("Content-type: image/jpeg");
$b_width=500;
$b_height=500;
$background = imagecreatetruecolor ($b_width, $b_height);
imageantialias ($background,false);
$color = ImageColorAllocate($background,255,255,44);
imagefill ($background,0,0, $color);
$cc=ImageColorAllocate($background,0,0,0);
imagefilledrectangle ($background, 0, 0, 200, 200,$cc);
$t=imagejpeg($background,'',100);
imagedestroy($t);
?>
