From: phpbug at webwidgets dot net Operating system: Debian woody PHP version: 4CVS-2003-07-24 (stable) PHP Bug Type: GD related Bug description: imagefilledpolygon doesn't antialias
Description: ------------ When creating images, if antialias is enabled with imageantialias() lines and polygons are drawn with antialiasing, but filled polygons are not. PHP version used is latest stable CVS with bundled GD library. Reproduce code: --------------- <?php $image = imagecreatetruecolor(400, 250); imageantialias($image, TRUE); $bg = imagecolorallocate($image, 255, 255, 255); imagefill($image, 0, 0, $bg); $points[] = 50; $points[] = 75; $points[] = 100; $points[] = 200; $points[] = 350; $points[] = 50; $color = imagecolorallocate($image, 200, 0, 0); imagefilledpolygon($image, $points, 3, $color); header('Content-type: image/png'); imagepng($image); ?> Expected result: ---------------- The outside lines of the polygon in the image created by the above code should be antialiased. Actual result: -------------- The outside lines of the polygon appear the same as they do when antialiasing is turned off. If you substitute imagepolygon for imagefilledpolygon, you will see that the unfilled polygon is indeed drawn antialiased; this is what I had expected to see. -- Edit bug report at http://bugs.php.net/?id=24798&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24798&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24798&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24798&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24798&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24798&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24798&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24798&r=support Expected behavior: http://bugs.php.net/fix.php?id=24798&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24798&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24798&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24798&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24798&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24798&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24798&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24798&r=gnused