homepage Welcome to WebmasterWorld Guest from 54.226.180.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP Images
Blending / Alpha Levels
Willis




msg:1305483
 3:11 am on Jan 29, 2005 (gmt 0)

if I generated an image:
first using imagecreate();
then coloring it over with imageline() //for my project yes this works out excelent.

I would like to import alternate PNG images and place them on top of my generated image.

However it gets better, I need to alpha out the color #6DB3D0.

or:
R: 109
G: 179
B: 208

I should say for the record, its not specificly THIS color, thats it's purest form, I also would like to make neighboring pixels transparent accuratly in comparision (so if a pixel was "half" that color and half black.. it would end up placing down a half black color.. if that makes any sense).

How would I do this? Please use an example if possible.

 

mincklerstraat




msg:1305484
 4:59 pm on Jan 30, 2005 (gmt 0)

Been a while since I was actively using gd, but since nobody's answered for a while I'll give this a shot. Have you considered setting this color with
imagecolorallocate() and then doing an imagecolortransparent() on it?
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved