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 › image load within oscEvent ?
Page Index Toggle Pages: 1
image load within oscEvent ??? (Read 295 times)
image load within oscEvent ???
Apr 23rd, 2007, 5:56pm
 
Hello,

i was trying to load a image when an oscEvent enters, but nothing happens. When i load the image within setup or draw in works.
Does someone know which mistake i am making? Or how it is to be handled, if i want to load a image from the harddrive when an the oscEvent is triggered?

PImage bildnamen[];
...

void oscEvent(OscMessage theOscMessage) {
 
 bildname = new PImage[j];

...

 bildname[m] = loadImage(m + ".jpg");
         
 image(bildname[m],20,20);

...

}


THANKS A LOT!!!!
Page Index Toggle Pages: 1