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 › loadImage or requestImage
Page Index Toggle Pages: 1
loadImage or requestImage (Read 499 times)
loadImage or requestImage
Mar 14th, 2010, 4:16am
 
Hi all, in my sketch I need to load a set of 34 images, I want this skect to go online and make a movie as well, but in neither of both I success, the sketch runs fine when I publish, but I had to increase the memory for the IDE in order to run it, so how can I solve this? does it make any diference using loadImage instead of requestImage?

Any suggestions will be much appreciated

Cheers
rS
Re: loadImage or requestImage
Reply #1 - Mar 14th, 2010, 4:42am
 
The only difference between loadImage and requestImage is that the latter doesn't block the sketch and you have to test when the loading is finished.
The loaded image will use the same amount of memory.
Since it works when you increase the memory, I don't see what is your problem, actually.
Re: loadImage or requestImage
Reply #2 - Mar 14th, 2010, 5:45am
 
Hi PhiLo, I got it working at the end, but I had to load less images for the sketch to run in the browser

Thanks
rS
Page Index Toggle Pages: 1