|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-02 13:23 UTC] jani@php.net
[2009-03-14 00:28 UTC] christopher dot bertram at yahoo dot de
[2009-03-16 13:40 UTC] jani@php.net
[2009-03-16 13:42 UTC] pajoye@php.net
[2009-03-16 14:48 UTC] christopher dot bertram at yahoo dot de
[2016-07-17 17:08 UTC] cmb@php.net
-PHP Version: 5.2.9
+PHP Version: any
[2016-07-17 17:08 UTC] cmb@php.net
[2016-07-19 12:30 UTC] cmb@php.net
-Summary: broken transparency of imagearc in truecolorimages
using blendingmode
+Summary: broken transparency of imagearc for truecolor in
blendingmode
[2016-07-19 15:56 UTC] cmb@php.net
[2016-07-19 15:56 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
[2016-10-17 10:10 UTC] bwoebi@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 16:00:02 2025 UTC |
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.