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 & HelpSyntax Questions › drawing into a PImage instead of the screen
Page Index Toggle Pages: 1
drawing into a PImage instead of the screen? (Read 299 times)
drawing into a PImage instead of the screen?
Feb 16th, 2009, 7:31pm
 
Is there any way to get regular drawing operations (line, ellipse, etc) to render into a PImage object rather than into the processing window directly?

At times it would be nice to be able to work "offscreen" in a separate buffer (the PImage), and render the image onto the screen when it's ready.

Any way to do this?
Re: drawing into a PImage instead of the screen?
Reply #1 - Feb 16th, 2009, 7:44pm
 
yes, it's hidden under the Extended link in the Reference stuff up there (plus you have to know what it's called in order to find it)

http://processing.org/reference/PGraphics.html
Re: drawing into a PImage instead of the screen?
Reply #2 - Feb 16th, 2009, 8:52pm
 
Thanks!
Page Index Toggle Pages: 1