Jump to content

Merging two images in an addative fashion


rgrne

Recommended Posts

I am looking through the PHP manual and am not clear on whether it is possible to do the following with any standard function:  I want to merge one image with another, like with imagecopymerge(), but do it in an additive fashion.  For example if a pixel in image 1 had a red value (red brightness) of 126, and the same pixel in image 2 had a red value of 20, then the red value of the pixel in the merged image would be 146, etc.  As opposed to just replacing the image information in image 1 with that in image 2, or overlaying image 2 as a transparency over image 1.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.