Pasting a transparent PNG into another image
void pasteImage(PImage canvas, PImage brush, int x, int y)
pastes one image into an other one
the images may have alpha!
paramters:
canvas: the PImage in the background
brush: the PImage in the front (the one you want to paste in)
x: xPosition (upper left corner of brush)
y: yPosition (upper left corner of brush)
Source code: exp_PImage_paste
Built with Processing