#30991 [Bgs]: problem in image transparancy
ID: 30991
User updated by: mars at talash dot net
Reported By: mars at talash dot net
Status: Bogus
Bug Type: GD related
Operating System: windows NT/2000
PHP Version: 4.3.9
Assigned To: pajoye
New Comment:
hi,
sorry for the disturbance.
plz give some sample code to use alpha channel.
or give some better sollution.
plz .
thanks & regards,
mars
Previous Comments:
------------------------------------------------------------------------
[2004-12-06 10:08:33] pajoye@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You can use only one transparent color.
With formats that support alpha channel, use the alpha channel.
--Pierre
------------------------------------------------------------------------
[2004-12-06 05:57:27] mars at talash dot net
Description:
------------
In my php.ini file,
i enabled GD only.
ie) uncomment that one line for gd configuration
Reproduce code:
---------------
$logoImage is png image.
$image1 = ImageCreateFromPNG($logoImage);
$color=imagecolorat($image1,$mouseX,$mouseY);
imagecolortransparent($image1,$color);
ImagePNG($image1,"$logoImage");
after transparant a color in image. save that image .
what the problem is,
after that i transparent another color in that image ,last color is
only
tranperant. previous color revoke it's original place.
for example :
imagecolortransparent($image1,$color);
imagecolortransparent($image1,$color1);
imagecolortransparent($image1,$color2);
imagecolortransparent($image1,$color3);
Expected result:
----------------
after excution only that image transperant for $color3
but i want a transparent image with all four color.
what can i do?
any other functions..
Actual result:
--------------
only image with last color transparancy.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30991&edit=1
Thread (5 messages)