#34020 [NEW]: ImagePolygon draws broken lines when using Antialiasing

From: Date: Sat, 06 Aug 2005 17:02:37 +0000
Subject: #34020 [NEW]: ImagePolygon draws broken lines when using Antialiasing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83093@lists.php.net to get a copy of this message
From:             yorick at gmx dot ch
Operating system: Linux
PHP version:      4.3.11
PHP Bug Type:     GD related
Bug description:  ImagePolygon draws broken lines when using Antialiasing

Description:
------------
ImagePolygon draws broken lines when Antialiasing is 
enabled. See example at http://
glassdbase.unibas.ch/test.php

Reproduce code:
---------------
<?php
$image = imagecreatetruecolor(500, 300);
$bg = imagecolorallocate($image, 0, 0, 0);
$col_poly = imagecolorallocate($image, 255, 255, 255);
$poly = array(35, 190, 42, 191, 45, 192, 48, 186, 51, 182, 63, 180, 78,
175, 91, 177, 115, 185,
		121, 184,
		131, 177,
		174, 133,
		201, 121,
		429, 60,
		435, 82,
		435, 260,
		35, 260
);
imageantialias($image, true);
imagepolygon($image, $poly, count($poly) / 2, $col_poly);
header("Content-type: image/png");
imagepng($image);
?> 

Expected result:
----------------
An antialiased polygon (=no interruption) as described 
in documentation.

Actual result:
--------------
See output of above example at http://
glassdbase.unibas.ch/test.php

-- 
Edit bug report at http://bugs.php.net/?id=34020&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34020&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34020&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34020&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34020&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34020&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34020&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34020&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34020&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34020&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34020&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=34020&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=34020&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34020&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34020&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34020&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34020&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34020&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34020&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34020&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34020&r=mysqlcfg


Thread (8 messages)

« previous php.bugs (#83093) next »