This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

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

This website has been archived and is no longer maintained.