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 › Using updatePixels to speed up a slow applet
Page Index Toggle Pages: 1
Using updatePixels to speed up a slow applet (Read 299 times)
Using updatePixels to speed up a slow applet
Mar 22nd, 2006, 8:14pm
 
Hi there,

Is there an easy way to update pixels[] with an image at a specified location?  I appreciate that this can be done with clever useage of for statements (etc), but I am worried that adding an entire image to pixels[] will take some time using this method.  You see, I wish to be able to make use of updatePixels and loadPixels to speed up the running of this full screen applet I have created, where a person selects an image using the mouse, and can then drag that image around the screen (rather jerky at the moment!).  A previous post does offer a solution (see http://processing.org/discourse/yabb/YaBB.cgi?board=general;action=display;num=1104602974), however, the code is quite dated and does not work any more.

Thanks for any help, Andy.
Page Index Toggle Pages: 1