Color Overlay
| From: | Jason Hart | Date: | Mon, 10 Sep 2007 05:47:51 +0000 |
| Subject: | Color Overlay | ||
| Groups: | php.gd.devel | ||
| Request: | Send a blank email to php-gd-devel+get-257@lists.php.net to get a copy of this message | ||
I was hoping to someone could help me find a way to simulate the 'Color
Overlay' feature from Photoshop using only the GD Library...
Basically I have a transparent overlay that I want to place over a
background image...
This is so I can fade the edges of that image to the background color of the
page...
This I've already done...
However the overlay image is a set color, black in this case...
I need to be able to change it under certain circumstances to match the page
color...
To change this in Photoshop I would just go to blending options -> color
overlay and select a different color...
I was hoping to find a way of doing this using the GD Library instead...
The overlay picture can be found here...
http://trekcon.com/overlay/overlay.png
The background picture can be found here...
http://trekcon.com/overlay/background.jpg
The result can be found here... http://trekcon.com/overlay/composite.jpg
The code can be found here... http://trekcon.com/overlay/watermark.php
Hopefully what I'm asking makes sense :)
Thanks in advance for any help
Jason Hart (aka Runey)