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 to a PImage / Drawing offscreen
Page Index Toggle Pages: 1
Drawing to a PImage / Drawing offscreen (Read 483 times)
Drawing to a PImage / Drawing offscreen
Sep 2nd, 2009, 9:29pm
 
Hello, I'm looking for a way to draw to something off-screen (could be a PImage, I don't care) so that I can then copy it back on screen with some transformations applied. Specifically I'm going to splice up the constructed image into horizontal blinds so i can make the the image move each segment separately.

The problem is I can't figure out how (if possible) to use regular processing drawing methods (rect, text etc..) on a PImage. The only way to get that stuff on the image is to draw it on the main canvas and copy it, which wouldn't work because I want to keep the canvas clear until I'm read to draw back on it.

any solutions?
Re: Drawing to a PImage / Drawing offscreen
Reply #1 - Sep 2nd, 2009, 11:07pm
 
look at http://processing.org/reference/PGraphics.html
Page Index Toggle Pages: 1