User-866747463 posted
OK, this might be kinda hard to explain, so bear with me. I have a client that wants to sell customizeable products on their site. The customer will be able to select a background, foreground, and personal message for each product. The
background and foreground are png images of different materials the product can be made out of. When the customer makes a selection, the image changes to show the current selected options.
When the customer enters a personal message we draw a string and output a png image of the text and place it over the other layers. All of this is working so far, heres my question.
I need to take the png created of the text string, and "subtract" it from the other layers of the image. Basically cut out the text from the foreground layer to show through to the background.
Here is a basic example of what I need to do.




I can get everything up until I need to cut the text out of the other image. Basically just delete the part of the image where the two PNG's intersect.
Any help would be very much appreciated.
Thanks