I believe you can do it using Taifun’s method, but it would take some preparation to create the “top” image. Something like:
- Add your top image to the canvas background
- Get the pixel colour of each pixel in the canvas, add this and its x,y coordinates to a list.
- Clear the canvas
- Add your “bottom” image to the canvas background
- You should now be able to “draw” the “top” image on the canvas using the data in the list. (This is the init procedure in Taifun’s method)