ID: 43828
Updated by: [EMAIL PROTECTED]
Reported By: christopher dot bertram at yahoo dot de
-Status: Open
+Status: Assigned
Bug Type: GD related
Operating System: Win Xp, Win Vista x64
PHP Version: 5.2.5
-Assigned To:
+Assigned To: pajoye
Previous Comments:
------------------------------------------------------------------------
[2008-01-12 23:08:14] christopher dot bertram at yahoo dot de
Description:
------------
the imagearc and imagefilledarc functions don't seem to support images
using truecolor and alphablending.
In the following example I don't need alphablending, but I require it
to use other images as background.
Reproduce code:
---------------
<?php
//outputs strange image
$img = imagecreatetruecolor(100, 100);
//works fine using palette image instead
//$img = imagecreate(100, 100);
imagesavealpha($img, true);
imagealphablending($img, true);
$transparent = imagecolorallocatealpha($img, 255, 255, 255, 80);
//make the background transparent
imagefill($img, 0, 0, $transparent);
$color = imagecolorallocatealpha($img, 0, 255, 0, 100);
imagefilledarc($img, 49, 49, 100, 100, 0 , 359, $color, IMG_ARC_PIE);
header('content-type: image/png');
imagepng($img);
?>
Expected result:
----------------
Same result as using the paletteimage version.
Actual result:
--------------
Strange looking arcs and filled arcs.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43828&edit=1