Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP Images

Blending / Alpha Levels

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

10+ Year Member

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.

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.

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

WebmasterWorld Senior Member 10+ Year Member

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
and then doing an
on it?