A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2009 yearHow do I set partial transparancy in GD with PHP? - page 1
User InfoPosts
How do I set partial transparancy in GD with PHP?#1
I am attempting to make a dynamic image with PHP, and I can(t find out how to set partial transparency. It is very easy to make things either solid or fully transparent, but I have been unable to do this.

posted date: 2009-04-13 12:17:00


Re: How do I set partial transparancy in GD with PHP?#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2009-04-13 12:17:01


Re: How do I set partial transparancy in GD with PHP?#3
Assuming you(re creating your image with the imagecreatetruecolor function and that you(re outputting the image as a PNG file....You need to call the following methods to specify that the image must be generated as a 24-bit PNG before calling imagepng:imagesavealpha($im, true);Note that Internet Explorer 6 doesn(t support 24-bit PNG files without the use of a CSS filter applied to the img tag.

posted date: 2009-04-13 12:39:00


Re: How do I set partial transparancy in GD with PHP?#4
Check out the documentation for imagecolorallicatealpha() There they create a transparent color circle.

posted date: 2009-04-13 12:56:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.