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 › how to draw in a small PImage, then display later
Page Index Toggle Pages: 1
how to draw in a small PImage, then display later? (Read 421 times)
how to draw in a small PImage, then display later?
Sep 26th, 2007, 3:26pm
 
I vaguely recall someone describing how it is possible to create a small PImage and apply regular Processing code to draw in that image (instead of the screen) ... and later that image could be displayed on the screen, saved to a file, etc.

However, I haven't been able to track down the magical incantation to set that up.

I would really appreciate it if someone post a short example, or provide a link to a previous discussion on this topic.

In my sketch, I want to create a bunch of small PImages, draw some text into those images, and then during the animation, ... display those PImages at different locations on the screen.  I am partly doing this because the "text" functions seem particularly slow and I can't achieve the desired frameRate.
I want to render the text ahead of time, and then use a fast image copy for each frame.

thanks!
 djones
Re: how to draw in a small PImage, then display la
Reply #1 - Sep 26th, 2007, 3:50pm
 
read up on pgraphics:
http://processing.org/reference/PGraphics.html
Page Index Toggle Pages: 1