We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Erasing a part of a picture
Page Index Toggle Pages: 1
Erasing a part of a picture (Read 466 times)
Erasing a part of a picture
Dec 30th, 2007, 4:53am
 
Is there any way, that i could load 2 images, one over another, and then with mouseclick event delete overlaying image pixel-by-pixel, so i would get parts of the second image visible?
Re: Erasing a part of a picture
Reply #1 - Dec 30th, 2007, 4:12pm
 
yes, use the pixels[] array of your PImages :
http://processing.org/reference/PImage_pixels.html
Page Index Toggle Pages: 1