Composing images with alpha channels

Hello,
I’ve done a little program which draws an image and then draws another image on top of it with a 50% alpa blend. The effect is that you can see right through the second image and see the first image, exactly the effect I intended. However I’d like to have the result as a PtImage_t, so it can go inside a PtButton, I cannot simply have it take a screenshot as the app may not always be at the front, and it’s possible that the image may be larger than the screen. So really I’m looking to redirect drawing to an image in memory, rather than the screen, any ideas?

Cheers

Garry

Look into using memory contexts. You can create them based on a PhImage and then render any photon stream right into it.

Excellent, will do.